git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
20fd6d5
)
commit-graph: not compatible with uninitialized repo
author
Derrick Stolee
<redacted>
Mon, 20 Aug 2018 18:24:32 +0000
(18:24 +0000)
committer
Junio C Hamano
<redacted>
Tue, 21 Aug 2018 17:22:51 +0000
(10:22 -0700)
Signed-off-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
commit-graph.c
patch
|
blob
|
history
diff --git
a/commit-graph.c
b/commit-graph.c
index c4eaedf4e5448075d2db678ea9e13e58bdb514e9..cee2caab5c60de5dc778840d931ae6eda8782fcc 100644
(file)
--- a/
commit-graph.c
+++ b/
commit-graph.c
@@
-62,6
+62,9
@@
extern int read_replace_refs;
static int commit_graph_compatible(struct repository *r)
{
+ if (!r->gitdir)
+ return 0;
+
if (read_replace_refs) {
prepare_replace_object(r);
if (hashmap_get_size(&r->objects->replace_map->map))
git clone https://git.99rst.org/PROJECT