Skip to content

Commit

Permalink
Made the first argument to git-retrack optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Feb 9, 2009
1 parent e6e6251 commit 98ef4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-retrack
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ if [ -n "$2" ]; then
git remote add -f $1 "$2" || echo But that\'s perfectly OK.
fi

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

0 comments on commit 98ef4c6

Please sign in to comment.