Skip to content

Commit a028a42

Browse files
committed
Fixed shellcheck errors
1 parent dfbe16f commit a028a42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/git-subrepo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ get-command-options() {
11151115
all_wanted=true ;;
11161116
-b) subrepo_branch=${1%%@*}
11171117
override_branch=${1%%@*}
1118-
if [ ${subrepo_branch} != "${1}" ]; then
1118+
if [ "${subrepo_branch}" != "${1}" ]; then
11191119
subrepo_branch_commit=${1#*@}
11201120
fi
11211121
commit_msg_args+=("--branch=$1")
@@ -1682,7 +1682,7 @@ reset-upstream-subrepo-branch-commit() {
16821682
error "Problem finding head commit in upstream branch '${subrepo_branch}'."
16831683

16841684
if [[ ! "${branch_commit}" =~ ^$subrepo_branch_commit ]]; then
1685-
OUT=true FAIL=false RUN git rev-list --parents $subrepo_branch_commit..$branch_commit
1685+
OUT=true FAIL=false RUN git rev-list --parents "$subrepo_branch_commit".."$branch_commit"
16861686
branch_commit=$(
16871687
echo "$output" | sed -e '$!d' -e 's/.* //'
16881688
)

0 commit comments

Comments
 (0)