Closed Bug 1248515 Opened 8 years ago Closed 8 years ago

Must be in gecko root directory to run git mozreview configure

Categories

(MozReview Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1247838

People

(Reporter: jya, Unassigned)

Details

If you run git mozreview in a sub-directory, it will fail with an error like:

jyapro:ffvpx jyavenard$ git mozreview configure
warning: will not need the "review" remote anymore;
You may remove it with `git remote remove review`.
installing commit-msg hook
Traceback (most recent call last):
  File "/Users/jyavenard/.mozbuild/version-control-tools/git/commands/git-mozreview", line 779, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/Users/jyavenard/.mozbuild/version-control-tools/git/commands/git-mozreview", line 767, in main
    return configure_command(args)
  File "/Users/jyavenard/.mozbuild/version-control-tools/git/commands/git-mozreview", line 657, in configure_command
    with open(dest_hook, 'wb') as fh:
IOError: [Errno 2] No such file or directory: u'.git/hooks/commit-msg'
actually, running git mozreview _anything_ will fail

jyapro:ffvpx jyavenard$ pwd
/Users/jyavenard/Work/Mozilla/mozilla-central/media/ffvpx
jyapro:ffvpx jyavenard$ git mozreview push
abort: configuration needed; run `git mozreview configure`
Dupe of bug 1247838? Please pull latest version-control-tools and report your findings.
Flags: needinfo?(jyavenard)
yep that works
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(jyavenard)
Resolution: --- → DUPLICATE
Product: Developer Services → MozReview
You need to log in before you can comment on or make changes to this bug.