This is just a little faster, avoiding an unneeded invocation of the shell.
Signed-off-by: Chuck Lever <cel@netapp.com>
raise GitException, 'git-read-tree failed (local changes maybe?)'
# this can fail if there are conflicts
- if os.system('git-merge-index -o -q gitmergeonefile.py -a') != 0:
+ if __run('git-merge-index -o -q gitmergeonefile.py -a') != 0:
raise GitException, 'git-merge-index failed (possible conflicts)'
def status(files = [], modified = False, new = False, deleted = False,