Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions git-artifact
Original file line number Diff line number Diff line change
Expand Up @@ -497,18 +497,19 @@ cmd_fetch-tags() {
}

main () {
[[ ${debug:-} == true ]] && {
arg_debug=
if [[ ${debug:-} == true ]] ; then
debug "debug: ${debug}"
arg_debug=1
set -x
}
fi
if [[ $# -eq 0 ]] ; then
set -- -h
fi
set_args="$(echo "$OPTS_SPEC" | git rev-parse --parseopt -- "$@" || echo exit $?)"
# Set the arguments array for "real" flag parsing.
eval "$set_args"
# Begin "real" flag parsing.
arg_debug=
arg_artifacttag=
arg_branch=
arg_path=
Expand Down Expand Up @@ -578,7 +579,9 @@ main () {
arg_command=$1
shift

which git-sh-setup
[[ -n ${arg_debug} ]] && {
which git-sh-setup || true
}
case "$arg_command" in
init) if test -z "${arg_remoteurl:-}" ; then
git artifact -h
Expand Down