Skip to content

Commit c24cdc2

Browse files
committed
Fix bare var, use exec so we return the underlying exit code
1 parent 3aaeb16 commit c24cdc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/git-track

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# `origin/$branch-name`.
55

66
branch=$(git rev-parse --abbrev-ref HEAD)
7-
git branch $branch --set-upstream-to origin/$branch
7+
exec git branch "$branch" --set-upstream-to "origin/$branch"

0 commit comments

Comments
 (0)