This stop git-tag from emitting a "shift: can't shift that many" error, when listing tags. Signed-off-by: Alexandre Vassalotti <alexandre@xxxxxxxxxxx> --- git-tag.sh | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/git-tag.sh b/git-tag.sh index c840439..bc0d735 100755 --- a/git-tag.sh +++ b/git-tag.sh @@ -14,18 +14,20 @@ username= list= verify= LINES=0 -while case "$#" in 0) break ;; esac -do +while [ $# -ne 0 ]; do case "$1" in -a) annotate=1 + shift ;; -s) annotate=1 signed=1 + shift ;; -f) force=1 + shift ;; -n) case $2 in @@ -36,6 +38,7 @@ do [ -z "$LINES" ] && LINES=1 # 1 line is default when -n is used ;; esac + shift ;; -l) list=1 @@ -122,7 +125,6 @@ do break ;; esac - shift done [ -n "$list" ] && exit 0 -- 1.5.2.1.144.gabc40 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html