Просмотр исходного кода

dpkg-source: fix path to gitshallow file in source format "3.0 (git)"

It was looking in the current directory, which works most of the time,
but not always.
Joey Hess лет назад: 16
Родитель
Сommit
c4eadd0e0f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      scripts/Dpkg/Source/Package/V3/git.pm

+ 1 - 1
scripts/Dpkg/Source/Package/V3/git.pm

@@ -225,7 +225,7 @@ sub do_extract {
         # Move shallow info file into place, so git does not
         # Move shallow info file into place, so git does not
         # try to follow parents of shallow refs.
         # try to follow parents of shallow refs.
         info(_g("setting up shallow clone"));
         info(_g("setting up shallow clone"));
-        system("cp", "-f",  $shallow, "$newdirectory/.git/shallow");
+        system("cp", "-f",  $dscdir.$shallow, "$newdirectory/.git/shallow");
         $? && subprocerr("cp");
         $? && subprocerr("cp");
     }
     }