]> arthur.barton.de Git - bup.git/commitdiff
get: remove extra src_repo
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 18 Dec 2019 21:43:58 +0000 (22:43 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 12 Jan 2020 16:47:51 +0000 (10:47 -0600)
We already have a src_repo from the with statement, no need to
instantiate another one (that won't even be closed properly).

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/get-cmd.py

index 809464d617111164cabb3d7527f30af90a8b6c2d..c2fc547112361d8010226bd2f5ec7043950e366a 100755 (executable)
@@ -586,9 +586,6 @@ def main():
     with dest_repo as dest_repo:
         with LocalRepo(repo_dir=src_dir) as src_repo:
             with dest_repo.new_packwriter(compression_level=opt.compress) as writer:
-
-                src_repo = LocalRepo(repo_dir=src_dir)
-
                 # Resolve and validate all sources and destinations,
                 # implicit or explicit, and do it up-front, so we can
                 # fail before we start writing (for any obviously