Merge branch 'rr/die-on-missing-upstream' into maint
When a reflog notation is used for implicit "current branch", we did
not say which branch, and worse said "branch ''".
* rr/die-on-missing-upstream:
sha1_name: fix error message for @{<N>}, @{<date>}
sha1_name: fix error message for @{u}
@ -129,8 +129,7 @@ test_expect_success 'branch@{u} works when tracking a local branch' '
@@ -129,8 +129,7 @@ test_expect_success 'branch@{u} works when tracking a local branch' '
test_expect_success 'branch@{u} error message when no upstream' '
cat >expect <<-EOF &&
error: No upstream configured for branch ${sq}non-tracking${sq}
fatal: Needed a single revision
fatal: No upstream configured for branch ${sq}non-tracking${sq}
EOF
error_message non-tracking@{u} 2>actual &&
test_i18ncmp expect actual
@ -138,8 +137,7 @@ test_expect_success 'branch@{u} error message when no upstream' '
@@ -138,8 +137,7 @@ test_expect_success 'branch@{u} error message when no upstream' '
test_expect_success '@{u} error message when no upstream' '
cat >expect <<-EOF &&
error: No upstream configured for branch ${sq}master${sq}
fatal: Needed a single revision
fatal: No upstream configured for branch ${sq}master${sq}
@ -166,8 +162,7 @@ test_expect_success '@{u} error message when not on a branch' '
@@ -166,8 +162,7 @@ test_expect_success '@{u} error message when not on a branch' '
test_expect_success 'branch@{u} error message if upstream branch not fetched' '
cat >expect <<-EOF &&
error: Upstream branch ${sq}refs/heads/side${sq} not stored as a remote-tracking branch
fatal: Needed a single revision
fatal: Upstream branch ${sq}refs/heads/side${sq} not stored as a remote-tracking branch