소스 검색

fix for fetch failures

Tobias Simetsreiter 5 년 전
부모
커밋
71f9078ad2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      gitmirror.py

+ 2 - 2
gitmirror.py

@@ -35,7 +35,7 @@ class Repo():
         self.remote = remote
         self.path   = path
         self.base   = base
-    
+
     @property
     def origin(self):
         return f"{self.remote}:{self.path}"
@@ -69,7 +69,7 @@ class Repo():
     def fetch(self):
         proc = run(["git","fetch","-p","origin","refs/*:refs/*"], cwd=self.local_path)
         if not proc.returncode == 0:
-            print(f"Error: {proc}, {local_repo}")
+            print(f"Error: {proc}, {self.local_path}")
             _rm(self.local_path)
 
     def init(self):