X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=git-am.sh;h=6cdd5910db50c96df3d149fba172750cb10c09cb;hb=3c624a30fa3f047d401e08cf019d39b3a79095ea;hp=e5671f61c61aad7fe47e174a31b534da6d8d2798;hpb=7b3b7e37581fb5266a260687c21af1571b4ade81;p=thirdparty%2Fgit.git diff --git a/git-am.sh b/git-am.sh index e5671f61c6..6cdd5910db 100755 --- a/git-am.sh +++ b/git-am.sh @@ -467,12 +467,12 @@ else set x first= } - case "$arg" in - /*) - set "$@" "$arg" ;; - *) - set "$@" "$prefix$arg" ;; - esac + if is_absolute_path "$arg" + then + set "$@" "$arg" + else + set "$@" "$prefix$arg" + fi done shift fi @@ -577,13 +577,6 @@ then resume= fi -if test "$this" -gt "$last" -then - say Nothing to do. - rm -fr "$dotest" - exit -fi - while test "$this" -le "$last" do msgnum=`printf "%0${prec}d" $this`