Show More
@@ -297,6 +297,10 b' def reposetup(ui, repo):' | |||||
297 |
|
297 | |||
298 | def commit(self, *args, **kwargs): |
|
298 | def commit(self, *args, **kwargs): | |
299 | ret = orig.commit(self, *args, **kwargs) |
|
299 | ret = orig.commit(self, *args, **kwargs) | |
|
300 | if ret is None: | |||
|
301 | # there was nothing to commit, so we should skip | |||
|
302 | # the index fixup logic we'd otherwise do. | |||
|
303 | return None | |||
300 | tid = self.store.git[gitutil.togitnode(ret)].tree.id |
|
304 | tid = self.store.git[gitutil.togitnode(ret)].tree.id | |
301 | # DANGER! This will flush any writes staged to the |
|
305 | # DANGER! This will flush any writes staged to the | |
302 | # index in Git, but we're sidestepping the index in a |
|
306 | # index in Git, but we're sidestepping the index in a |
General Comments 0
You need to be logged in to leave comments.
Login now