git » git-arr » commit 18e8599

Use "cloneurl" as a default for git_url

author Alberto Bertogli
2012-11-30 13:50:23 UTC
committer Alberto Bertogli
2013-03-09 23:23:52 UTC
parent c303c30755b917c1377b831f2d37abf7841824c8

Use "cloneurl" as a default for git_url

This patch makes git_url have the same default as gitweb.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

git-arr +1 -1
sample.conf +2 -2

diff --git a/git-arr b/git-arr
index 17f681f..69d10cb 100755
--- a/git-arr
+++ b/git-arr
@@ -41,7 +41,7 @@ def load_config(path):
         'web_url': '',
         'web_url_file': 'web_url',
         'git_url': '',
-        'git_url_file': 'git_url',
+        'git_url_file': 'cloneurl',
     }
 
     config = configparser.SafeConfigParser(defaults)
diff --git a/sample.conf b/sample.conf
index 1be7f8e..5a4db22 100644
--- a/sample.conf
+++ b/sample.conf
@@ -38,8 +38,8 @@ path = /srv/git/repo/
 
 # File name to get the git URLs from (optional).
 # If git_url is not set, attempt to get its value from this file.
-# Default: "git_url"
-#git_url_file = git_url
+# Default: "cloneurl" (same as gitweb).
+#git_url_file = cloneurl
 
 # Do we look for repositories within this path? (optional).
 # This option enables a recursive, 1 level search for repositories within the