summaryrefslogtreecommitdiff
path: root/gentree.py
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-10-21 11:08:25 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2013-10-21 21:50:38 +0200
commitea70308d746325654d44851be602fe02492b59f9 (patch)
tree49f31f54192ac7ba3fddd88762962e8cdbdd2fa6 /gentree.py
parentdb67a3f06e3cbd0ac2196f7373e5e927fc1a866f (diff)
lib/bpgit.py: enable extra arguments on git describe
This lets us throw at it whatever extra stuff we want. Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'gentree.py')
-rwxr-xr-xgentree.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gentree.py b/gentree.py
index c480c98b..24514723 100755
--- a/gentree.py
+++ b/gentree.py
@@ -468,9 +468,10 @@ def process(kerneldir, outdir, copy_list_file, git_revision=None,
backports_version = "(see git)"
kernel_version = "(see git)"
else:
- backports_version = git.describe(tree=source_dir)
+ backports_version = git.describe(tree=source_dir, extra_args=['--long'])
kernel_version = git.describe(rev=args.git_revision or 'HEAD',
- tree=args.kerneldir)
+ tree=args.kerneldir,
+ extra_args=['--long'])
f = open(os.path.join(args.outdir, 'versions'), 'w')
f.write('BACKPORTS_VERSION="%s"\n' % backports_version)
f.write('BACKPORTED_KERNEL_VERSION="%s"\n' % kernel_version)