chiark / gitweb /
git-debrebase: test suite: introduce t-make-new-upstream-tarball
[dgit.git] / tests / lib-gdr
index ed55ecf41613ecfe9aa932b73c7eb12a244df424..74c571ab7743aa2bd7e705a96ec06f943206ddb7 100644 (file)
@@ -108,3 +108,13 @@ t-some-changes () {
        done
        git commit -m "MIXED add both ($token)"
 }
        done
        git commit -m "MIXED add both ($token)"
 }
+
+t-make-new-upstream-tarball () {
+       local uv=$1
+       git checkout make-upstream
+       # leaves ust set to filename of orig tarball
+       echo "upstream $uv" >>docs/README
+       git commit -a -m "upstream $uv tarball"
+       ust=example_$uv.orig.tar.gz
+       git archive -o ../$ust --prefix=example-2.0/ make-upstream
+}