[jhbuild] [info] Display git specific branch and tag information (GNOME bug 619935)
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] [info] Display git specific branch and tag information (GNOME bug 619935)
- Date: Tue, 8 Jun 2010 08:51:45 +0000 (UTC)
commit 0a7f5b799bb2a0bd6f5573e9b99e8ae9bbb4a8b8
Author: Dirk Wallenstein <halsmit t-online de>
Date: Sat Jun 5 13:28:01 2010 +0200
[info] Display git specific branch and tag information (GNOME bug 619935)
jhbuild/commands/info.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/commands/info.py b/jhbuild/commands/info.py
index 7526854..583e8e6 100644
--- a/jhbuild/commands/info.py
+++ b/jhbuild/commands/info.py
@@ -83,6 +83,12 @@ class cmd_info(Command):
uprint(_('Darcs-Archive:'), module.branch.module)
elif isinstance(module.branch, GitBranch):
uprint(_('Git-Module:'), module.branch.module)
+ git_branch = module.branch.branch
+ if not git_branch:
+ git_branch = 'master'
+ uprint(_('Git-Branch:'), git_branch)
+ if module.branch.tag:
+ uprint(_('Git-Tag:'), module.branch.tag)
elif isinstance(module.branch, TarballBranch):
uprint(_('URL:'), module.branch.module)
uprint(_('Version:'), module.branch.version)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]