If the index has unmerged entries, the current checkout implementation
fails because of the -m option. This patch removes the option since it is
not needed on tree_id is specified. This also allows "stg status --reset"
to work on unmerged indexes.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
if not files:
files = []
- if tree_id and __run('git-read-tree -m', [tree_id]) != 0:
+ if tree_id and __run('git-read-tree', [tree_id]) != 0:
raise GitException, 'Failed git-read-tree -m %s' % tree_id
checkout_cmd = 'git-checkout-index -q -u'