Skip to content

Commit

Permalink
Merge branch 'nd/maint-fix-replace'
Browse files Browse the repository at this point in the history
* nd/maint-fix-replace:
  parse_object: pass on the original sha1, not the replaced one
  • Loading branch information
Junio C Hamano committed Sep 4, 2010
2 parents cd1547d + 2e3400c commit f92d62e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion object.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ struct object *parse_object(const unsigned char *sha1)
return NULL;
}

obj = parse_object_buffer(repl, type, size, buffer, &eaten);
obj = parse_object_buffer(sha1, type, size, buffer, &eaten);
if (!eaten)
free(buffer);
return obj;
Expand Down
2 changes: 1 addition & 1 deletion t/t6050-replace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ test_expect_success 'fetch branch with replacement' '

test_expect_success 'bisect and replacements' '
git bisect start $HASH7 $HASH1 &&
test "$S" = "$(git rev-parse --verify HEAD)" &&
test "$PARA3" = "$(git rev-parse --verify HEAD)" &&
git bisect reset &&
GIT_NO_REPLACE_OBJECTS=1 git bisect start $HASH7 $HASH1 &&
test "$HASH4" = "$(git rev-parse --verify HEAD)" &&
Expand Down

0 comments on commit f92d62e

Please sign in to comment.