chiark / gitweb /
test suite: quilt-useremail: New test for user config copying
[dgit.git] / tests / tests / quilt-useremail
diff --git a/tests/tests/quilt-useremail b/tests/tests/quilt-useremail
new file mode 100755 (executable)
index 0000000..f079395
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/bash
+set -e
+. tests/lib
+
+t-tstunt-parsechangelog
+t-archive example 1.0-1
+t-worktree 1.0
+t-git-none
+
+cd $p
+
+git checkout quilt-tip-2
+
+t-dgit -wgf fetch
+
+oe=other.email@example.com
+on='Hannibal Barca'
+
+git config --local user.email "$oe"
+git config --local user.name  "$on"
+
+t-dgit -wgf --quilt=smash quilt-fixup
+
+git show | fgrep "$oe"
+git show | fgrep "$on"
+
+t-ok