Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
combine-diff.c: use strbuf_readlink()
[gitweb.git]
/
setup.c
diff --git
a/setup.c
b/setup.c
index 78a8041ff0d17a5220133549880ccbc507b1890d..833ced2269ae45b08f381fb2644b74f47cf50d1a 100644
(file)
--- a/
setup.c
+++ b/
setup.c
@@
-470,7
+470,8
@@
const char *setup_git_directory_gently(int *nongit_ok)
}
die("Not a git repository");
}
- chdir("..");
+ if (chdir(".."))
+ die("Cannot change to %s/..: %s", cwd, strerror(errno));
}
inside_git_dir = 0;