Skip to content
Snippets Groups Projects
Commit 8c8e3d19 authored by Dan Villiom Podlaski Christiansen's avatar Dan Villiom Podlaski Christiansen
Browse files

gclear: remove tags file as well

parent d959dcf9
No related branches found
No related tags found
No related merge requests found
......@@ -439,6 +439,7 @@
def clear(self):
mapfile = self.vfs.join(self.map_file)
tagsfile = self.vfs.join(self.tags_file)
if os.path.exists(self.gitdir):
for root, dirs, files in os.walk(self.gitdir, topdown=False):
for name in files:
......@@ -448,6 +449,8 @@
os.rmdir(self.gitdir)
if os.path.exists(mapfile):
os.remove(mapfile)
if os.path.exists(tagsfile):
os.remove(tagsfile)
# incoming support
def getremotechanges(self, remote, revs):
......
......@@ -164,7 +164,7 @@
$ hg gclear
clearing out the git cache data
$ ls .hg | grep git
git-tags
[1]
$ hg push ../gitrepo2
pushing to ../gitrepo2
searching for changes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment