author | Eric Sunshine
<sunshine@sunshineco.com> 2014-12-31 09:50:06 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2015-01-11 21:18:14 UTC |
parent | aaf2968538121f9443f1aea2156814fede5a5648 |
git-arr | +3 | -2 |
diff --git a/git-arr b/git-arr index bd38324..6982b00 100755 --- a/git-arr +++ b/git-arr @@ -347,8 +347,9 @@ def generate(output, skip_index = False): dirname = git.smstr(os.path.dirname(oname.raw)) fname = git.smstr(os.path.basename(oname.raw)) write_to( - 'r/%s/b/%s/t/%s/f=%s.html' % - (str(r.name), str(bn), dirname.raw, fname.raw), + 'r/%s/b/%s/t/%s%sf=%s.html' % + (str(r.name), str(bn), + dirname.raw, '/' if dirname.raw else '', fname.raw), blob, (r, bn, fname.url, dirname.url), mtime) else: write_to('r/%s/b/%s/t/%s/index.html' %