Skip to content

Commit 98ef4c6

Browse files
committed
Made the first argument to git-retrack optional.
1 parent e6e6251 commit 98ef4c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-retrack

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ if [ -n "$2" ]; then
1010
git remote add -f $1 "$2" || echo But that\'s perfectly OK.
1111
fi
1212

13-
git config branch.$branch.remote "$1"
13+
git config branch.$branch.remote "${1:-origin}"
1414
git config branch.$branch.merge "refs/heads/${3:-$branch}"

0 commit comments

Comments
 (0)