diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-09-07 09:52:04 +0900 |
---|---|---|
committer | Gustaf Lundh <gustaf.lundh@sonymobile.com> | 2012-09-07 10:17:00 +0200 |
commit | d94aaef39e301cc912968c07d1783232bf34a174 (patch) | |
tree | 48b884fef63992e8b80127c40687a7cf5ff4c8f7 /subcmds/sync.py | |
parent | bd489c4eaa592af98b8b4f09b0a465e0d2b6046a (diff) | |
download | git-repo-d94aaef39e301cc912968c07d1783232bf34a174.tar.gz |
sync: Correct imports of `R_HEADS` and `HEAD`
`R_HEADS` is imported twice, from both the git_refs and project
modules.
It is actually defined in git_refs, and in project it is imported
from there, so the import of `R_HEADS` from project in the sync
module is redundant. Remove it.
`HEAD` is imported from project, but like `R_HEADS` it is actually
defined in git_refs. Import it from git_refs instead.
Change-Id: I8e2b0217d0d9f9f4ee5ef5b8cd0b026174ac52f4
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index b2658d87..cbf0decc 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -37,13 +37,11 @@ except ImportError: | |||
37 | return (256, 256) | 37 | return (256, 256) |
38 | 38 | ||
39 | from git_command import GIT | 39 | from git_command import GIT |
40 | from git_refs import R_HEADS | 40 | from git_refs import R_HEADS, HEAD |
41 | from project import HEAD | ||
42 | from project import Project | 41 | from project import Project |
43 | from project import RemoteSpec | 42 | from project import RemoteSpec |
44 | from command import Command, MirrorSafeCommand | 43 | from command import Command, MirrorSafeCommand |
45 | from error import RepoChangedException, GitError | 44 | from error import RepoChangedException, GitError |
46 | from project import R_HEADS | ||
47 | from project import SyncBuffer | 45 | from project import SyncBuffer |
48 | from progress import Progress | 46 | from progress import Progress |
49 | 47 | ||