git-p4: Fix an obvious typo
PATCH 1/1 git-p4: Fix an obvious typo
The regexp "$," can't match anything. Clearly not intended.
This was introduced in ce6f33c8 which is quite a while ago.
Signed-off-by Tommy Thorn <[email protected]>
--- contrib/fast-import/git-p4 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
contrib/fast-import/git-p4 +1 -1
@@ -1670,7 +1670,7 @@ class P4Clone(P4Sync): depotPath = args[0] depotDir = re.sub("(@[^@]*)$", "", depotPath) depotDir = re.sub("(#[^#]*)$", "", depotDir) - depotDir = re.sub(r"\.\.\.$,", "", depotDir) + depotDir = re.sub(r"\.\.\.$", "", depotDir) depotDir = re.sub(r"/$", "", depotDir) return os.path.split(depotDir)[1]
Signature · 9 lines
1.5.4.rc5.5.gab98
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hsQuoted 5 lines · On Saturday 02 February 2008 09:11:44 Tommy Thorn wrote:
The regexp "$," can't match anything. Clearly not intended.
This was introduced in
ce6f33c8which is quite a while ago.Signed-off-by Tommy Thorn <[email protected]>
Acked-by Simon Hausmann <[email protected]>
Simon
Quoted 16 lines
--- contrib/fast-import/git-p4 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)contrib/fast-import/git-p4 +1
-1@@ -1670,7 +1670,7 @@ class P4Clone(P4Sync): depotPath = args[0] depotDir = re.sub("(@[^@]*)$", "", depotPath) depotDir = re.sub("(#[^#]*)$", "", depotDir) - depotDir = re.sub(r"\.\.\.$,", "", depotDir) + depotDir = re.sub(r"\.\.\.$", "", depotDir) depotDir = re.sub(r"/$", "", depotDir) return os.path.split(depotDir)[1]