]> 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>
Sat, 25 Apr 2020 19:18:58 +0000 (14:18 -0500)
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>
(cherry picked from commit ab051b4620832ef8e2b4dd134b1b61241f53814e)
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/get-cmd.py

index efeb78fd821f7d8d9caee5217af0a4f8dfd0aa24..3d7d4a59c10fdec66344f63f0f8478d534d69eeb 100755 (executable)
@@ -585,9 +585,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