summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-12-12 15:09:57 -0800
committerJunio C Hamano <gitster@pobox.com>2016-12-12 15:09:57 -0800
commit9b519609a625386f517545ab31de147ad6f433cb (patch)
treebb1ab1d5e115b2447ed5d245f1180c3550b7dd94 /sha1_file.c
parent62fe0eb4804c297486a1d421a4f893865fcbc911 (diff)
parent37a95862c625e1d2ed2609e01b03950253ad4ff9 (diff)
downloadgit-9b519609a625386f517545ab31de147ad6f433cb.tar.gz
Merge branch 'jk/alt-odb-cleanup' into jk/quote-env-path-list-component
* jk/alt-odb-cleanup: alternates: re-allow relative paths from environment
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 064651947d..fbafdbed94 100644
--- 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);