Files
MSYS2-packages/git/git-2.3.5-mingw-pwd.patch
T
2022-01-24 22:23:38 +01:00

40 lines
610 B
Diff

--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
@@ -306,28 +305,17 @@ case $(uname -s) in
find () {
/usr/bin/find "$@"
}
- # git sees Windows-style pwd
- pwd () {
- builtin pwd -W
- }
- is_absolute_path () {
- case "$1" in
- [/\\]* | [A-Za-z]:*)
- return 0 ;;
- esac
- return 1
- }
;;
-*)
- is_absolute_path () {
- case "$1" in
- /*)
- return 0 ;;
- esac
- return 1
- }
esac
+is_absolute_path () {
+ case "$1" in
+ /*)
+ return 0 ;;
+ esac
+ return 1
+}
+
# Make sure we are in a valid repository of a vintage we understand,
# if we require to be in a git repository.
git_dir_init () {