From: Kevin Green <Kevin.Green@morganstanley.com>
To: git@vger.kernel.org
Subject: [PATCH] git-p4import.py: handle paths with symlinks
Date: Fri, 8 Jun 2007 18:33:00 -0400 [thread overview]
Message-ID: <20070608223300.GL25093@menevado.ms.com> (raw)
Need to expand symlinks when checking if the p4 client is misconfigured
for the local git dir.
Signed-off-by: Kevin Green <Kevin.Green@morganstanley.com>
---
git-p4import.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-p4import.py b/git-p4import.py
index 0f3d97b..ad15708 100644
--- a/git-p4import.py
+++ b/git-p4import.py
@@ -312,7 +312,7 @@ for o, a in opts:
p4.authors(a)
localdir = git.basedir()
-if p4.where()[:len(localdir)] != localdir:
+if os.path.realpath(os.path.dirname(p4.where())) != os.path.realpath(localdir):
report(1, "**WARNING** Appears p4 client is misconfigured")
report(1, " for sync from %s to %s" % (p4.repopath, localdir))
if ignore_warnings != True:
--
1.5.2.1
reply other threads:[~2007-06-08 22:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20070608223300.GL25093@menevado.ms.com \
--to=kevin.green@morganstanley.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