From a013d40d737ef70fae7885b5e339660ca112d978 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 26 Aug 2018 01:18:08 +0100 Subject: test suite: lib-gdr: Factor out t-make-orig NFC, overall. Signed-off-by: Ian Jackson --- tests/lib | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/lib') diff --git a/tests/lib b/tests/lib index 42e1344..9693c25 100644 --- a/tests/lib +++ b/tests/lib @@ -1026,6 +1026,15 @@ t-make-badcommit () { t-expect-fsck-fail $badcommit } +t-make-orig () { + # leaves ust set to filename of orig tarball + local p=$1 + local v=$2 + local tag=${3-v$2} + ust=${p}_${v}.orig.tar.gz + git archive -o ../$ust --prefix=${p}-${v}/ $tag +} + t-merge-conflicted-stripping-conflict-markers () { local otherbranch=$1 local file=$2 -- cgit v1.2.3