]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-am.sh
t4135-*.sh: Skip the "backslash" tests on cygwin
[thirdparty/git.git] / git-am.sh
index de116a29ef091a23f60603a28f1260ba60f054ac..df09b42840b7675e135605f9108894ce93e6d477 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
@@ -444,12 +444,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