One of our users ran into an issue where they were running arc diff in
a subdirectory and it so happened that in that directoy there wasn't any lfs
files so the repo was marked as $is_lfs == false. Lets allow arc to be run
from anywhere.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rARC33b9728b5f65: Run ls-files from the root of the directory
Internally this patch worked
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Branch
- master
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 23955 Build 32966: arc lint + arc unit
Event Timeline
Comment Actions
Try something like this:
list($stdout) = $repository_api->execxLocal( 'ls-files ...', ':(attr...)');
That should set the CWD correctly and avoid a bunch of other issues (see T13479). We also likely can't $(...) on Windows.
Comment Actions
If that doesn't immediately work, yell at me and I can grab this and figure out what's up.