]> khamidou — GitHub mirrors - arcanist.git/commit
Allow `arc diff` and similar to run on systems with no `git`
authorepriestley <git@epriestley.com>
Mon, 4 Feb 2013 19:34:53 +0000 (11:34 -0800)
committerepriestley <git@epriestley.com>
Mon, 4 Feb 2013 19:34:53 +0000 (11:34 -0800)
commitbe73bd871634f8c7fca0d847064b01daded452b4
tree22b1b813d567e192de8af3d2911b9237154946a2
parent8e34e2bd03c75f98fbc08a7f86bc2c85eae5f43b
Allow `arc diff` and similar to run on systems with no `git`

Summary:
We assume `git` is available now, but should not. Specifically, if a user runs a working copy operation like `arc list` in an SVN working copy without `git` available, they get this error: P707

We interpret git errors very narrowly; be more liberal in how we interpret them. This assumes users working with `git` will have a functional `git`, but this seems like a reasonable assumption and lets us remove some error text matching code.

Test Plan: Changed `git` to `girt`, ran `arc list`, saw a reasonable exception. Changed back to `git`, saw git detected.

Reviewers: btrahan, vrana

Reviewed By: vrana

CC: svemir, aran
Differential Revision: https://secure.phabricator.com/D4804
src/repository/api/ArcanistRepositoryAPI.php