From: "Robin Rosenberg" <robin.rosenberg.lists@dewire.com>
To: git@vger.kernel.org
Subject: [PATCH] Test for windows format absolute paths on cygwin too
Date: Fri, 31 Aug 2007 09:07:20 +0000 [thread overview]
Message-ID: <xMhwifY1.1188551240.4001640.roro@localhost> (raw)
---
Requires cherry-picking 6397c3119ecaa258b5185315c64062bec29bcd86
sha1_file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sha1_file.c b/sha1_file.c
index 97ea448..fa867b8 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -84,7 +84,7 @@ int get_sha1_hex(const char *hex, unsigned char *sha1)
/* returns the number of chars to skip to first component */
static inline int is_path_absolute(const char *path)
{
-#ifdef __MINGW32__
+#if defined(__MINGW32__) || defined(__CYGWIN__)
if (isalpha(path[0]) && path[1] == ':')
return 2 + (path[2] == '/');
/* TODO: C:dir/file 'relative' paths are not catered for */
--
1.5.3.rc7.25.g5389f-dirty
next reply other threads:[~2007-08-31 9:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-31 9:07 Robin Rosenberg [this message]
2007-08-31 9:31 ` [PATCH] Test for windows format absolute paths on cygwin too Johannes Sixt
2007-08-31 21:07 ` Robin Rosenberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xMhwifY1.1188551240.4001640.roro@localhost \
--to=robin.rosenberg.lists@dewire.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).