aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/path.c b/path.c
index 650c66c32..883324b10 100644
--- a/path.c
+++ b/path.c
@@ -638,7 +638,7 @@ int validate_headref(const char *path)
struct stat st;
char buffer[256];
const char *refname;
- unsigned char sha1[20];
+ struct object_id oid;
int fd;
ssize_t len;
@@ -679,7 +679,7 @@ int validate_headref(const char *path)
/*
* Is this a detached HEAD?
*/
- if (!get_sha1_hex(buffer, sha1))
+ if (!get_oid_hex(buffer, &oid))
return 0;
return -1;