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-28 22:20:16 +0100
commitf91ba9a6655596d14e41e78301c4dd3aeb0a6b37 (patch)
treeb55c169daa7889f0343ad6819713d5d0d7d2fb33 /gentree.py
parent3c0232c76029b92aee02037b09da588a7a8b440e (diff)
lib/bpgit.py: enable extra arguments on git describe
Upstream commit: ea70308d746325654d44851be602fe02492b59f9 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)