[sysadmin-bin] .git gets dropped from repo_name on get_repo_name()



commit 59b6b478d167a450c4cacbbd4cb0fd45b67b537c
Author: Andrea Veri <averi redhat com>
Date:   Wed Jul 11 20:03:49 2018 +0200

    .git gets dropped from repo_name on get_repo_name()

 git/post-receive-mirror-github | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/git/post-receive-mirror-github b/git/post-receive-mirror-github
index ef86d5e..bd05225 100755
--- a/git/post-receive-mirror-github
+++ b/git/post-receive-mirror-github
@@ -161,7 +161,7 @@ def main():
     description, homepage = gh.fetch_github_repo(github_name)
     settings = get_repo_settings(repo_name)
 
-    if repo_name.endswith('.wiki.git'):
+    if repo_name.endswith('.wiki'):
         sys.exit(1)
 
     if description != settings["description"]:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]