From 49be30049d9af690712ea8c9765aeff7af98d401 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 5 Nov 2016 12:07:15 +0000 Subject: [PATCH] cvs-adjustroot: reinvoke oursevles via "$0" rather than our hardcoded name. Makes testing easier, etc. Signed-off-by: Ian Jackson --- debian/changelog | 2 ++ scripts/cvs-adjustroot | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 717e31d..5c4fc9b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,8 @@ chiark-utils (4.5.0~iwj5) unstable; urgency=medium Fixes the first half of #839708. * cvs-adjustroot: silently succeed for */CVS/Root entries which already match the new value. Closes:#839708 (second half). + * cvs-adjustroot: reinvoke oursevles via "$0" rather than + our hardcoded name. Makes testing easier, etc. -- diff --git a/scripts/cvs-adjustroot b/scripts/cvs-adjustroot index 0448d9a..080029c 100755 --- a/scripts/cvs-adjustroot +++ b/scripts/cvs-adjustroot @@ -48,6 +48,6 @@ fi # nonzero exit status when appropriate. find -path '*/CVS/Root' \ - \( -exec cvs-adjustroot --reinvoke "$old" "$new" '{}' ';' \ + \( -exec "$0" --reinvoke "$old" "$new" '{}' ';' \ -o -exec false '{}' + \ \) -- 2.30.2