]> khamidou — GitHub mirrors - arcanist.git/commit
Fix arc diff when run from a git submodule
authorNick Harper <nharper@fb.com>
Thu, 17 Jan 2013 19:28:13 +0000 (11:28 -0800)
committerNick Harper <nharper@fb.com>
Thu, 17 Jan 2013 19:28:13 +0000 (11:28 -0800)
commit40102252bffaf61b9d5418db29b5758337b8076b
tree2d5bc9f65b6964aff2e81ac5e69947fe887c1566
parenta39b591c95b1bc8ea33361501e2c5f13bab7b395
Fix arc diff when run from a git submodule

Summary:
A git submodule looks a lot like a normal git repo, but the .git
directory is replaced with a file that git reads to find the real
location of the git directory. When arcanist tries to write a file into
a directory inside of there, it was failing silently, and then crashing
silently when it couldn't read results back out. Instead of assuming the
git directory is a directory named .git at the toplevel of the tree, we
use the appropriate git command to get the correct git directory.

Test Plan: submit a diff from a submodule

Reviewers: epriestley, vrana

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4482
src/repository/api/ArcanistGitAPI.php
src/workflow/ArcanistDiffWorkflow.php