Mercurial > kallithea
changeset 8050:804dc8c6d204
vcs: fix remove_tag to use os.path.join for joining file system paths
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 26 Dec 2019 01:44:25 +0100 |
parents | e2c34c5fe820 |
children | 8a4a8020c38f |
files | kallithea/lib/vcs/backends/git/repository.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/vcs/backends/git/repository.py Wed Dec 25 21:22:18 2019 +0100 +++ b/kallithea/lib/vcs/backends/git/repository.py Thu Dec 26 01:44:25 2019 +0100 @@ -12,7 +12,6 @@ import errno import logging import os -import posixpath import re import time import urllib @@ -439,7 +438,8 @@ """ if name not in self.tags: raise TagDoesNotExistError("Tag %s does not exist" % name) - tagpath = posixpath.join(self._repo.refs.path, 'refs', 'tags', name) + # self._repo.refs is a DiskRefsContainer, and .path gives the full absolute path of '.git' + tagpath = os.path.join(self._repo.refs.path, 'refs', 'tags', name) try: os.remove(tagpath) self._parsed_refs = self._get_parsed_refs()