]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/get-cmd.py
get: remove pointless git.repo() call
[bup.git] / lib / cmd / get-cmd.py
index c3198241d3da46ef6fababc1e665e6a6a217b82c..7fc741e04db4fa6f6f61eaabbdd2aa987d2c992a 100755 (executable)
@@ -9,7 +9,7 @@ for arg in "$@"; do
     arg_i=$((arg_i + 1))
 done
 # Here to end of preamble replaced during install
-bup_python="$(dirname "$0")/bup-python" || exit $?
+bup_python="$(dirname "$0")/../../config/bin/python" || exit $?
 exec "$bup_python" "$0"
 """
 # end of bup preamble
@@ -587,7 +587,6 @@ def main():
     git.check_repo_or_die()
     if opt.source:
         opt.source = argv_bytes(opt.source)
-    src_dir = opt.source or git.repo()
     if opt.bwlimit:
         client.bwlimit = parse_num(opt.bwlimit)
     if is_reverse and opt.remote:
@@ -600,7 +599,7 @@ def main():
         dest_repo = LocalRepo()
 
     with dest_repo as dest_repo:
-        with LocalRepo(repo_dir=src_dir) as src_repo:
+        with LocalRepo(repo_dir=opt.source) as src_repo:
             with dest_repo.new_packwriter(compression_level=opt.compress) as writer:
                 # Resolve and validate all sources and destinations,
                 # implicit or explicit, and do it up-front, so we can