]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1507-rev-parse-upstream.sh
Fix log -g this@{upstream}
[thirdparty/git.git] / t / t1507-rev-parse-upstream.sh
index 95c9b0923f19782f8d40c36fd82d5e75d9f8f9b5..8c8dfdaf9f037f370629f419af02aa7a9d75f613 100755 (executable)
@@ -107,4 +107,33 @@ test_expect_success 'checkout other@{u}' '
        test_cmp expect actual
 '
 
+cat >expect <<EOF
+commit 8f489d01d0cc65c3b0f09504ec50b5ed02a70bd5
+Reflog: master@{0} (C O Mitter <committer@example.com>)
+Reflog message: branch: Created from HEAD
+Author: A U Thor <author@example.com>
+Date:   Thu Apr 7 15:15:13 2005 -0700
+
+    3
+EOF
+test_expect_success 'log -g other@{u}' '
+       git log -1 -g other@{u} >actual &&
+       test_cmp expect actual
+'
+
+cat >expect <<EOF
+commit 8f489d01d0cc65c3b0f09504ec50b5ed02a70bd5
+Reflog: master@{Thu Apr 7 15:17:13 2005 -0700} (C O Mitter <committer@example.com>)
+Reflog message: branch: Created from HEAD
+Author: A U Thor <author@example.com>
+Date:   Thu Apr 7 15:15:13 2005 -0700
+
+    3
+EOF
+
+test_expect_success 'log -g other@{u}@{now}' '
+       git log -1 -g other@{u}@{now} >actual &&
+       test_cmp expect actual
+'
+
 test_done