Package: git-buildpackage
Version: 0.4.7
Severity: important
Tags: patch
The --git-tag option does not work when export-dir is set because git-tag
gets run in the wrong directory.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages git-buildpackage depends on:
ii devscripts 2.10.10 Scripts to make the life of a Debi
ii git-core 1:1.5.3.5-1 fast, scalable, distributed revisi
ii python 2.4.4-6 An interactive high-level object-o
ii python-support 0.7.5 automated rebuilding support for p
git-buildpackage recommends no packages.
-- no debconf information
>From b99c20a750365862a95037be3b5439c65c23f573 Mon Sep 17 00:00:00 2001
From: CJ van den Berg <[EMAIL PROTECTED]>
Date: Fri, 16 Nov 2007 21:05:27 +0100
Subject: [PATCH] Make --git-tag work properly in combination with export-dir
The --git-tag option does not work when export-dir is set because git-tag
gets run in the wrong directory.
---
git-buildpackage | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/git-buildpackage b/git-buildpackage
index 1029129..f5923a6 100755
--- a/git-buildpackage
+++ b/git-buildpackage
@@ -204,6 +204,10 @@ def main(argv):
os.chdir(export_dir)
Command(options.builder, dpkg_args, shell=True)()
+
+ if options.export_dir:
+ os.chdir(repo_dir)
+
if options.tag:
try:
version = cp['Version']
--
1.5.3.5