Merge pull request #268 from GuillaumeSeren/bug/git-missing

Fix #267, git-missing did not catch branch name.
This commit is contained in:
hemanth.hm 2014-10-15 08:02:04 +05:30
commit 55c8ad0141

View file

@ -2,9 +2,9 @@
# grab first two non-option arguments
for arg in $*; do
if [[ $arg != -* ]]; then
test -z "$firstbranch" && firstbranch=$arg && continue
test -z "$secondbranch" && secondbranch=$arg && continue
if [ -n "${arg}" ]; then
test -z "$firstbranch" && firstbranch="${arg}" && continue
test -z "$secondbranch" && secondbranch="${arg}" && continue
else
# add anything else to a passthrough
passthrough="$passthrough $arg"