From: Avery Pennarun Date: Sun, 10 Jan 2010 00:50:13 +0000 (-0500) Subject: cmd-index: default indexfile path is ~/.bup/bupindex, not $PWD/index X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f76cb0d6e8f6f2d3be09287db72a26acdb01b3bb;p=packages%2Fb%2Fbup.git cmd-index: default indexfile path is ~/.bup/bupindex, not $PWD/index --- diff --git a/cmd-index.py b/cmd-index.py index 54e4751..fd214f0 100755 --- a/cmd-index.py +++ b/cmd-index.py @@ -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: