author | Eric Sunshine
<sunshine@sunshineco.com> 2014-12-31 09:50:12 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2015-01-11 21:18:18 UTC |
parent | d7604dab4dcd4c826828cb1abbed6eabdbcfa790 |
git-arr | +2 | -0 |
sample.conf | +2 | -1 |
diff --git a/git-arr b/git-arr index 6982b00..902bb89 100755 --- a/git-arr +++ b/git-arr @@ -105,6 +105,8 @@ def load_config(path): r.info.commits_in_summary = config.getint(s, 'commits_in_summary') r.info.commits_per_page = config.getint(s, 'commits_per_page') r.info.max_pages = config.getint(s, 'max_pages') + if r.info.max_pages <= 0: + r.info.max_pages = sys.maxint r.info.generate_tree = config.getboolean(s, 'tree') r.info.web_url = config.get(s, 'web_url') diff --git a/sample.conf b/sample.conf index 2ad25f0..705a022 100644 --- a/sample.conf +++ b/sample.conf @@ -19,7 +19,8 @@ path = /srv/git/repo/ # Maximum number of per-branch pages for static generation (optional). # When generating static html, this is the maximum number of pages we will -# generate for each branch's commit listings. +# generate for each branch's commit listings. Zero (0) means unlimited. +# Default: 5 #max_pages = 5 # Project website (optional).