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 <redacted>
Acked-by: Simon Hausmann <redacted>
Signed-off-by: Junio C Hamano <redacted>
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]