Skip to content

Commit 3cbd905

Browse files
committed
Fixed to fetch before getting new commits from origin
1 parent c75e1e3 commit 3cbd905

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/cppsm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ fi
1717

1818
BRANCH="$(git -C "$CPPSM" symbolic-ref --short HEAD)"
1919

20+
git -C "$CPPSM" fetch --quiet
21+
2022
ORIGIN="$(git -C "$CPPSM" log --pretty=oneline --abbrev-commit "..origin/$BRANCH" | sed 's#^# #g')"
2123
if [ -n "$ORIGIN" ]; then
2224
ORIGIN="$(cat << EOF
@@ -33,8 +35,6 @@ EOF
3335
)"
3436
fi
3537

36-
git -C "$CPPSM" fetch --quiet
37-
3838
# shellcheck disable=SC2035
3939
COMMANDS="$(cd "$CPPSM/commands" && echo *)"
4040
COMMANDS="${COMMANDS// /|}"

0 commit comments

Comments
 (0)