diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-01-07 12:55:05 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-01-07 12:55:05 -0800 |
commit | 098501527f2b5628f086d3d9d2fda87220c069a5 (patch) | |
tree | d5874ea1c3185a6baa71719ff20e89ad57e53b46 /sha1_name.c | |
parent | 58e0362eddba1678a71c8990862053ff989527b6 (diff) | |
parent | 2ce406ccb85c4546b6d19309a6101b37c7bd952e (diff) | |
download | git-098501527f2b5628f086d3d9d2fda87220c069a5.tar.gz |
Merge branch 'jc/merge-bases'
The get_merge_bases*() API was easy to misuse by careless
copy&paste coders, leaving object flags tainted in the commits that
needed to be traversed.
* jc/merge-bases:
get_merge_bases(): always clean-up object flags
bisect: clean flags after checking merge bases
Diffstat (limited to 'sha1_name.c')
-rw-r--r-- | sha1_name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_name.c b/sha1_name.c index cb88170252..cf2a83b143 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -993,7 +993,7 @@ int get_sha1_mb(const char *name, unsigned char *sha1) two = lookup_commit_reference_gently(sha1_tmp, 0); if (!two) return -1; - mbs = get_merge_bases(one, two, 1); + mbs = get_merge_bases(one, two); if (!mbs || mbs->next) st = -1; else { |