Closed Bug 1274531 Opened 8 years ago Closed 8 years ago

git-mozreview file path error on Windows

Categories

(MozReview Graveyard :: Integration: Git, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: daoshengmu, Assigned: xeonchen)

Details

Attachments

(1 file)

https://github.com/mozilla/version-control-tools/blob/master/git/commands/git-mozreview#L658

On Windows, we need to use 'slash symbol' instead of 'escape symbol' for file paths.
Assignee: nobody → xeonchen
This can be simply reproduced by following python script:

> re.sub('', 'C:\\git-mozreview', '')

because '\g' is meaningful in re.
Comment on attachment 8754761 [details]
MozReview Request: Bug 1274531 - replace backslashes in path to slashes; r?gps

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/54232/diff/1-2/
Component: General → Integration: Git
Attachment #8754761 - Flags: review?(gps) → review+
Comment on attachment 8754761 [details]
MozReview Request: Bug 1274531 - replace backslashes in path to slashes; r?gps

https://reviewboard.mozilla.org/r/54232/#review51052
https://hg.mozilla.org/hgcustom/version-control-tools/rev/a595577550d4
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: