chiark / gitweb /
Print the git version when running the "stg version" command
authorChuck Lever <cel@netapp.com>
Wed, 26 Oct 2005 18:51:51 +0000 (14:51 -0400)
committerCatalin Marinas <catalin.marinas@gmail.com>
Thu, 27 Oct 2005 19:47:13 +0000 (20:47 +0100)
"git --version" was added only recently.

Signed-off-by: Chuck Lever <cel@netapp.com>
stgit/main.py

index 07bc7d4ac594febca51bb2a830f7aa882c58a1ed..0a06b006f6fa0529910064e72f987b5a2b8343d8 100644 (file)
@@ -127,6 +127,7 @@ def main():
         sys.exit(0)
     if cmd in ['-v', '--version', 'version']:
         print 'Stacked GIT %s' % version
+        os.system('git --version')
         print 'Python version %s' % sys.version
         sys.exit(0)
     if cmd in ['copyright']: