Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Sync with 1.8.5.5
[gitweb.git]
/
builtin
/
prune.c
diff --git
a/builtin/prune.c
b/builtin/prune.c
index beb0dc942c1263ecf4aa5ab87b10520f481ebe43..de43b26cfe9c7610c13e3320bdac9fa2049e4db6 100644
(file)
--- a/
builtin/prune.c
+++ b/
builtin/prune.c
@@
-180,5
+180,9
@@
int cmd_prune(int argc, const char **argv, const char *prefix)
s = mkpathdup("%s/pack", get_object_directory());
remove_temporary_files(s);
free(s);
+
+ if (is_repository_shallow())
+ prune_shallow(show_only);
+
return 0;
}