library/git_mkdir.py in qb-0.1.3 vs library/git_mkdir.py in qb-0.1.4
- old
+ new
@@ -53,10 +53,10 @@
keep_path = os.path.join(path, '.gitkeep')
if (not os.path.exists(keep_path)) and (not contians_files(path)):
open(os.path.join(path, '.gitkeep'), 'a').close()
with cd(path):
- subprocess.check_call(['git', 'add', '.gitkeep'])
+ subprocess.check_call(['git', 'add', '-f', '.gitkeep'])
changed = True
module.exit_json(
changed = changed,
)
\ No newline at end of file