mirror of
https://github.com/tj/git-extras.git
synced 2026-09-14 17:36:25 -04:00
Merge pull request #268 from GuillaumeSeren/bug/git-missing
Fix #267, git-missing did not catch branch name.
This commit is contained in:
commit
55c8ad0141
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue