diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 997d10b..4c9bd24 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,5 +1,10 @@
+v7.0.3
+=======
+* fix mercurial usage when pip primes a isolated environment
+* fix regression for branch names on git + add a test
+
 v7.0.2
-======
+=======
 
 * fix #723 and #722: remove bootstrap dependencies
 * bugfix: ensure we read the distribution name from setup.cfg
diff --git a/src/setuptools_scm/git.py b/src/setuptools_scm/git.py
index 1f8984b..47e2a9e 100644
--- a/src/setuptools_scm/git.py
+++ b/src/setuptools_scm/git.py
@@ -82,10 +82,10 @@ class GitWorkdir(Workdir):
         return bool(out)
 
     def get_branch(self) -> str | None:
-        branch, err, ret = self.do_ex_git(["rev-parse", "--abbrev-ref", "HEAD", "--"])
+        branch, err, ret = self.do_ex_git(["rev-parse", "--abbrev-ref", "HEAD"])
         if ret:
             trace("branch err", branch, err, ret)
-            branch, err, ret = self.do_ex_git(["symbolic-ref", "--short", "HEAD", "--"])
+            branch, err, ret = self.do_ex_git(["symbolic-ref", "--short", "HEAD"])
             if ret:
                 trace("branch err (symbolic-ref)", branch, err, ret)
                 return None

diff --git a/testing/test_git.py b/testing/test_git.py
index 661a5ee..cb54f61 100644
--- a/testing/test_git.py
+++ b/testing/test_git.py
@@ -378,6 +378,14 @@ def test_git_archive_run_from_subdirectory(
     assert integration.find_files(".") == [opj(".", "test1.txt")]
 
 
+@pytest.mark.issue("https://github.com/pypa/setuptools_scm/issues/728")
+def test_git_branch_names_correct(wd: WorkDir) -> None:
+    wd.commit_testfile()
+    wd("git checkout -b test/fun")
+    wd_git = git.GitWorkdir(os.fspath(wd.cwd))
+    assert wd_git.get_branch() == "test/fun"
+
+
 def test_git_feature_branch_increments_major(wd: WorkDir) -> None:
     wd.commit_testfile()
     wd("git tag 1.0.0")

7.0.0+ Regression: Calling GitWorkdir.git_branch inserts a newline
We use a version scheme for development that adds a branch name when the package is built on a git branch.

Recently we found 7.0.0+ changed the behavior of git_branch with the trailing `--` (apparently to add Hg support?)... Now, the "branch" variable consistently adds a newline and a trailing `--`, which breaks compatibility with PEP and causes other surprising failures downstream.

The code traces to this line here which changed in the 7.0.0 merge: https://github.com/pypa/setuptools_scm/blob/main/src/setuptools_scm/git.py#L85

Running raw git command with Ubuntu 20.04, on a branch called "test-branch" results in:

```
$ git --version
git version 2.25.1
$ git rev-parse --abbrev-ref HEAD --
test-branch
--
$
```

And then inside a python environment:

```
>>> from setuptools_scm import git
>>> git.parse(".")
<ScmVersion 7.0.2 dist=None node=gf1f35bd dirty=False branch=test-branch
-->
>>> 
```

testing/test_git.py::test_git_branch_names_correct
testing/test_git.py::test_parse_describe_output[3.3.1-rc26-0-g9df187b-3.3.1-rc26-0-g9df187b-False] testing/test_git.py::test_parse_describe_output[17.33.0-rc-17-g38c3047c0-17.33.0-rc-17-g38c3047c0-False] testing/test_git.py::test_root_relative_to testing/test_git.py::test_root_search_parent_directories testing/test_git.py::test_git_gone testing/test_git.py::test_file_finder_no_history testing/test_git.py::test_parse_call_order testing/test_git.py::test_version_from_git testing/test_git.py::test_git_version_unnormalized_setuptools[false] testing/test_git.py::test_git_version_unnormalized_setuptools[with_created_class] testing/test_git.py::test_git_version_unnormalized_setuptools[with_named_import] testing/test_git.py::test_unicode_version_scheme testing/test_git.py::test_git_worktree testing/test_git.py::test_git_dirty_notag[False] testing/test_git.py::test_git_dirty_notag[True] testing/test_git.py::test_git_parse_shallow_warns testing/test_git.py::test_git_parse_shallow_fail testing/test_git.py::test_git_shallow_autocorrect testing/test_git.py::test_find_files_stop_at_root_git testing/test_git.py::test_parse_no_worktree testing/test_git.py::test_alphanumeric_tags_match testing/test_git.py::test_git_archive_export_ignore testing/test_git.py::test_git_archive_subdirectory testing/test_git.py::test_git_archive_run_from_subdirectory testing/test_git.py::test_git_feature_branch_increments_major testing/test_git.py::test_not_matching_tags testing/test_git.py::test_non_dotted_version_with_updated_regex testing/test_git.py::test_non_dotted_tag_no_version_match testing/test_git.py::test_gitdir testing/test_git.py::test_git_getdate testing/test_git.py::test_git_getdate_badgit testing/test_git.py::test_git_getdate_signed_commit testing/test_git.py::test_git_archival_to_version[1.0-from_data0] testing/test_git.py::test_git_archival_to_version[1.1.dev3+g0000-from_data1] testing/test_git.py::test_git_archival_to_version[0.0-from_data2] testing/test_git.py::test_git_archival_to_version[1.2.2-from_data3] testing/test_git.py::test_git_archival_to_version[1.2.2.dev0-from_data4]