summaryrefslogtreecommitdiff
path: root/gbp
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-06-30 17:12:48 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-11-14 14:47:20 +0200
commit1799cc26a19cd19acfe7a866561b70e6de632481 (patch)
tree97a1ffd35ecf2383cf5678ec50c9abaeded68b4b /gbp
parent0bbf81d2661d869cdb2216b50fc5faf60cbce7be (diff)
downloadgit-buildpackage-1799cc26a19cd19acfe7a866561b70e6de632481.tar.gz
git-buildpackage-1799cc26a19cd19acfe7a866561b70e6de632481.tar.bz2
git-buildpackage-1799cc26a19cd19acfe7a866561b70e6de632481.zip
buildpackage_rpm: fix crash when running prebuild hook
GitRepository.git_dir is not callable. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp')
-rwxr-xr-xgbp/scripts/buildpackage_rpm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py
index 6dc5b597..20230abd 100755
--- a/gbp/scripts/buildpackage_rpm.py
+++ b/gbp/scripts/buildpackage_rpm.py
@@ -640,7 +640,7 @@ def main(argv):
if not options.export_only and not options.tag_only:
if options.prebuild:
RunAtCommand(options.prebuild, shell=True,
- extra_env={'GBP_GIT_DIR': repo.git_dir(),
+ extra_env={'GBP_GIT_DIR': repo.git_dir,
'GBP_BUILD_DIR': export_dir})(dir=export_dir)
# Finally build the package: