buildpackage_rpm: fix crash when running prebuild hook
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 30 Jun 2014 14:12:48 +0000 (17:12 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 30 Jun 2014 15:28:23 +0000 (18:28 +0300)
GitRepository.git_dir is not callable.

Change-Id: Ibc2040b8a36e60a9499b29ea675caa7a8fc8c968
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/scripts/buildpackage_rpm.py

index 6dc5b59..20230ab 100755 (executable)
@@ -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: