X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-am.sh;h=6cdd5910db50c96df3d149fba172750cb10c09cb;hb=73151df0cf3b324fc5f8980774601794c4b88204;hp=f4db17d93424c18c1db53e9bf84cdeee8219fa10;hpb=8a59702ad888c8c399b096759c1c678ffeca5b03;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