Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-rebase.txt: document behavioral differences between modes
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index b0e57cc4400964ad7dca8d37c5d4c10bf3979b51..0030e79940ff8564b5c8c5ebab462eb1bd745174 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-207,6
+207,9
@@
static void prepare_commit_graft(void)
if (commit_graft_prepared)
return;
+ if (!startup_info->have_repository)
+ return;
+
graft_file = get_graft_file();
read_graft_file(graft_file);
/* make sure shallows are read */