浏览代码

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):