shallow: add repository argument to is_repository_shallow
[gitweb.git] / upload-pack.c
index 4e4ac0f0d9595da6a26f43047b503ae5a4f0cf04..51b9038111e7f7b2f54443fa613c1cd0b2bfb457 100644 (file)
@@ -707,7 +707,7 @@ static void send_unshallow(const struct object_array *shallows)
 static void deepen(int depth, int deepen_relative,
                   struct object_array *shallows)
 {
-       if (depth == INFINITE_DEPTH && !is_repository_shallow()) {
+       if (depth == INFINITE_DEPTH && !is_repository_shallow(the_repository)) {
                int i;
 
                for (i = 0; i < shallows->nr; i++) {