]> arthur.barton.de Git - bup.git/commitdiff
cmd-index: default indexfile path is ~/.bup/bupindex, not $PWD/index
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 10 Jan 2010 00:50:13 +0000 (19:50 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 10 Jan 2010 00:50:13 +0000 (19:50 -0500)
cmd-index.py

index 54e4751633e01ebdc9a667915952437de2e0023f..fd214f05cbad9a5b53ce72fdc10202171e4ca042 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python2.5
 import sys, re, errno, stat, tempfile, struct, mmap
-import options
+import options, git
 from helpers import *
 
 EMPTY_SHA = '\0'*20
@@ -400,7 +400,8 @@ if opt.fake_valid and not opt.update:
     log('bup index: --fake-valid is meaningless without -u\n')
     exit(96)
 
-indexfile = opt.indexfile or 'index'
+git.check_repo_or_die()
+indexfile = opt.indexfile or git.repo('bupindex')
 
 xpaths = []
 for path in extra: