Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-fetch--tool takes flags before the subcommand.
[gitweb.git]
/
upload-pack.c
diff --git
a/upload-pack.c
b/upload-pack.c
index 3a466c6a3e66fdde2bb20b580db841c0600190bb..3648aae1a777aec4bba77b40b9cf6da484190441 100644
(file)
--- a/
upload-pack.c
+++ b/
upload-pack.c
@@
-672,7
+672,8
@@
int main(int argc, char **argv)
if (!enter_repo(dir, strict))
die("'%s': unable to chdir or not a git archive", dir);
-
+ if (is_repository_shallow())
+ die("attempt to fetch/clone from a shallow repository");
upload_pack();
return 0;
}