diff options
author | Mike Frysinger <vapier@google.com> | 2019-07-10 15:42:30 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2019-07-11 01:30:18 +0000 |
commit | ca540aed19bb89a4cd71de83ba123338e1e721f6 (patch) | |
tree | b0a368eb98116602d239778d68e16256782524a8 /subcmds | |
parent | f88b2fe5699ed224ad693e22a4c26fb76b8befc8 (diff) | |
download | git-repo-ca540aed19bb89a4cd71de83ba123338e1e721f6.tar.gz |
git_command: drop custom version helper
Since ParseGitVersion can call `git --version` automatically, we don't
need this duplicate version() helper anymore. The only other user is
the `repo version` code, so convert that to version_tuple().full.
Bug: https://crbug.com/gerrit/11144
Change-Id: I9d77822fc39f4ba28884d9183359169cabf5f17d
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/231055
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds')
-rw-r--r-- | subcmds/version.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/version.py b/subcmds/version.py index 8b48bcfb..9fb694df 100644 --- a/subcmds/version.py +++ b/subcmds/version.py | |||
@@ -41,5 +41,5 @@ class Version(Command, MirrorSafeCommand): | |||
41 | print('repo launcher version %s' % Version.wrapper_version) | 41 | print('repo launcher version %s' % Version.wrapper_version) |
42 | print(' (from %s)' % Version.wrapper_path) | 42 | print(' (from %s)' % Version.wrapper_path) |
43 | 43 | ||
44 | print(git.version().strip()) | 44 | print('git %s' % git.version_tuple().full) |
45 | print('Python %s' % sys.version) | 45 | print('Python %s' % sys.version) |