shgit: use IFS correctly
This commit is contained in:
parent
6cdd3337fd
commit
f1c39a568c
@ -45,8 +45,11 @@ shgit()
|
|||||||
status=${SHGIT_SEP}?
|
status=${SHGIT_SEP}?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
IFS=" " set -- $(git rev-list --left-right --count \
|
oldIFS=$IFS
|
||||||
@{upstream}...HEAD 2>/dev/null)
|
IFS=" "
|
||||||
|
set -- $(git rev-list --left-right --count @{upstream}...HEAD \
|
||||||
|
2>/dev/null)
|
||||||
|
IFS=$oldIFS
|
||||||
commits=v${1:-0}^${2:-0}
|
commits=v${1:-0}^${2:-0}
|
||||||
commits=${commits#v0}
|
commits=${commits#v0}
|
||||||
commits=${commits%^0}
|
commits=${commits%^0}
|
||||||
|
Loading…
Reference in New Issue
Block a user