diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-08-01 15:00:08 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-01 15:00:08 -0700 |
commit | 1df561fb4861708ce208488aa307516c0ecfa968 (patch) | |
tree | d642bff3822cc638967d3fc6c54d2060e21ec0cf /builtin | |
parent | 259bcfb6b987021be592ed640253215bcbbf6d7d (diff) | |
parent | ff00b682f203eb39876b57404916b4c54b6032c6 (diff) | |
download | git-1df561fb4861708ce208488aa307516c0ecfa968.tar.gz |
Merge branch 'jc/maint-reset-unmerged-path'
* jc/maint-reset-unmerged-path:
reset [<commit>] paths...: do not mishandle unmerged paths
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/reset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/reset.c b/builtin/reset.c index 98bca044c1..777e7c6129 100644 --- a/builtin/reset.c +++ b/builtin/reset.c @@ -162,7 +162,7 @@ static void update_index_from_diff(struct diff_queue_struct *q, for (i = 0; i < q->nr; i++) { struct diff_filespec *one = q->queue[i]->one; - if (one->mode) { + if (one->mode && !is_null_sha1(one->sha1)) { struct cache_entry *ce; ce = make_cache_entry(one->mode, one->sha1, one->path, 0, 0); |