MSYS2-packages/git/git-2.3.5-mingw-pwd.patch
Christopher Degawa 2ccaf50d3e
git: update to 3.36.0 & rebase patches & use CYGWIN_CHOST
Removes git-1.9.0-manifest-msys2.patch as it is already applied upstream
as fe90397604f9f9695b3fa0b8b11d9f93533b655f

Signed-off-by: Christopher Degawa <ccom@randomderp.com>
2022-04-29 11:49:22 -05:00

40 lines
611 B
Diff

--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
@@ -315,28 +315,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 () {