X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-am.sh;h=6cdd5910db50c96df3d149fba172750cb10c09cb;hb=5cd7fadc076880c48a27fd4e5e70844f127ceb99;hp=f4db17d93424c18c1db53e9bf84cdeee8219fa10;hpb=f8d0215c8111e586d2d811a451aff1848bae4d96;p=git.git diff --git a/git-am.sh b/git-am.sh index f4db17d93..6cdd5910d 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