Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

Commit

Permalink
Allow empty commits.
Browse files Browse the repository at this point in the history
Some (historical?) Dokuwiki changes may not actually contain changes,
so allow creating empty git commits with the related message.
  • Loading branch information
hoxu committed Dec 28, 2011
1 parent f2338b9 commit ef44894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dokuwiki2git
Expand Up @@ -80,7 +80,7 @@ class Converter:
cmds.append('git add "%s"' % pagefile)
elif c[2] == 'D': # delete
cmds.append('git rm "%s"' % pagefile)
cmds.append('git commit --allow-empty-message --author="%s" -m "%s"' % (author, message.replace('"', '\\"')))
cmds.append('git commit --allow-empty --allow-empty-message --author="%s" -m "%s"' % (author, message.replace('"', '\\"')))
#print cmds
self.commands.extend(cmds)

Expand Down

0 comments on commit ef44894

Please sign in to comment.