Ron <[email protected]> writes: > Thanks for this. We can probably do it without needing sed though, > something like this: > > diff --git a/git-debcherry b/git-debcherry > index 76032c7..b01e161 100755 > --- a/git-debcherry > +++ b/git-debcherry > @@ -115,7 +115,7 @@ while : ; do > shift > ;; > -o | --output-directory) > - patch_dir=$2 > + patch_dir=${2%/} > case $patch_dir in > /*)
For whatever reason I had to hand apply the patch against gitpkg 0.26, but it seems to work OK for me.
>From 48bb8f8dfc7587bc7d63b216390ed35f080abe61 Mon Sep 17 00:00:00 2001 From: David Bremner <[email protected]> Date: Thu, 21 May 2015 20:28:29 +0200 Subject: [PATCH] debcherry: strip trailing slash from output directory This is a proposed fix for debian bug 784130 --- git-debcherry | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-debcherry b/git-debcherry index 76032c7..b01e161 100755 --- a/git-debcherry +++ b/git-debcherry @@ -115,7 +115,7 @@ while : ; do shift ;; -o | --output-directory) - patch_dir=$2 + patch_dir=${2%/} case $patch_dir in /*) ;; -- 2.1.4

