Skip to content

Commit

Permalink
Use symbolic name SHORT_NAME_AMBIGUOUS as error return value
Browse files Browse the repository at this point in the history
Signed-off-by: Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Uwe Zeisberger authored and Junio C Hamano committed Jan 27, 2006
1 parent a8608db commit e974c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sha1_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static int find_unique_short_object(int len, char *canonical,
}
/* Both have unique ones -- do they match? */
if (memcmp(packed_sha1, unpacked_sha1, 20))
return -2;
return SHORT_NAME_AMBIGUOUS;
memcpy(sha1, packed_sha1, 20);
return 0;
}
Expand Down

0 comments on commit e974c9a

Please sign in to comment.