diff --git a/sha1_file.c b/sha1_file.c
index 064a33040812ba8782bf602c693abf08613d6ec7..f7c3408de61ce406874d9dea69133563c04c3ed8 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
{
struct lock_file *lock = xcalloc(1, sizeof(struct lock_file));
int fd = hold_lock_file_for_append(lock, git_path("objects/info/alternates"), LOCK_DIE_ON_ERROR);
- char *alt = mkpath("%s/objects\n", reference);
+ char *alt = mkpath("%s\n", reference);
write_or_die(fd, alt, strlen(alt));
if (commit_lock_file(lock))
die("could not close alternates file");