##// END OF EJS Templates
git: fix index handling of removed files during commit (issue6398)...
Augie Fackler -
r45992:d4cf8034 default
parent child Browse files
Show More
@@ -303,8 +303,10 b' class gitdirstate(object):'
303 303 def drop(self, f):
304 304 index = self.git.index
305 305 index.read()
306 index.remove(pycompat.fsdecode(f))
307 index.write()
306 fs = pycompat.fsdecode(f)
307 if fs in index:
308 index.remove(fs)
309 index.write()
308 310
309 311 def remove(self, f):
310 312 index = self.git.index
@@ -270,3 +270,8 b' This covers manifest.diff()'
270 270 +++ b/beta Mon Jan 01 00:00:11 2007 +0000
271 271 @@ -0,0 +1,1 @@
272 272 +beta
273
274
275 Deleting files should also work (this was issue6398)
276 $ hg rm beta
277 $ hg ci -m 'remove beta'
General Comments 0
You need to be logged in to leave comments. Login now