Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
alternates: re-allow relative paths from environment
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 064651947dcab37b014309796aa32df0ed944750..fbafdbed94cfe810000fbf72dd5eaf54b1302d9c 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-296,7
+296,7
@@
static int link_alt_odb_entry(const char *entry, const char *relative_base,
}
strbuf_addstr(&pathbuf, entry);
- if (strbuf_normalize_path(&pathbuf) < 0) {
+ if (strbuf_normalize_path(&pathbuf) < 0
&& relative_base
) {
error("unable to normalize alternate object path: %s",
pathbuf.buf);
strbuf_release(&pathbuf);