diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c
index 5fa4be8fb4265d903903fbf19dc6c7ce19a8eed4..d8e2c5fca7902d6d9a9e8300e129d58ad7a98192 100644 (file)
--- a/builtin/receive-pack.c
+++ b/builtin/receive-pack.c
@@ -740,7 +740,7 @@ static int add_refs_from_alternate(struct alternate_object_database *e, void *un
const struct ref *extra;
e->name[-1] = '\0';
- other = xstrdup(make_absolute_path(e->base));
+ other = xstrdup(real_path(e->base));
e->name[-1] = '/';
len = strlen(other);