]> khamidou — GitHub mirrors - arcanist.git/commit
Fix a fatal for git uncommitted changes in new arc projects
authorepriestley <git@epriestley.com>
Wed, 5 Dec 2012 17:20:15 +0000 (09:20 -0800)
committerepriestley <git@epriestley.com>
Wed, 5 Dec 2012 17:20:15 +0000 (09:20 -0800)
commitba1a17ac31458f46c4e1530df7236667107f0d3a
tree30c1f7d6b4c1bcebe2883594e52f2eed353efd48
parent209ffba8c06c140622cf08b6676f5dca4d1ab976
Fix a fatal for git uncommitted changes in new arc projects

Summary:
If you run `arc diff` in a repository which:

  - has uncommitted or untracked changes; and
  - has a .arcconfig with a never-before-seen project ID;
  - we fatal: http://pastebin.com/raw.php?i=ykpfr4MT

This patch is a bit iffy, open to alternatives. The "right" patch is probably an `arcanistproject.query` which behaves more sensibly.

I return array() directly since we'll later create the project.

Test Plan: Ran `arc diff` in a repository with untracked files or uncommitted changes and a new project ID.

Reviewers: vrana

Reviewed By: vrana

CC: aran
Differential Revision: https://secure.phabricator.com/D4057
src/workflow/ArcanistBaseWorkflow.php