remote-bzr: avoid unreferred tags
[gitweb.git] / contrib / remote-helpers / test-bzr.sh
index f0672f618de6aae1f47d73b0b696d84e5177e6cf..1a9c8d775cc7afb232b84af392291708bef33703 100755 (executable)
@@ -164,4 +164,19 @@ test_expect_success 'moving directory' '
   test_cmp expected actual
 '
 
+test_expect_success 'different authors' '
+  (cd bzrrepo &&
+  echo john >> content &&
+  bzr commit -m john \
+    --author "Jane Rey <jrey@example.com>" \
+    --author "John Doe <jdoe@example.com>") &&
+
+  (cd gitrepo &&
+  git pull &&
+  git show --format="%an <%ae>, %cn <%ce>" --quiet > ../actual) &&
+
+  echo "Jane Rey <jrey@example.com>, A U Thor <author@example.com>" > expected &&
+  test_cmp expected actual
+'
+
 test_done