Skip to content

Commit ccf628d

Browse files
author
Charles O'Farrell
committed
Issue #20: Add empty files
1 parent 14c5133 commit ccf628d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rebase.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,10 @@ def getFile(line):
243243
elif line.startswith('>'):
244244
added = getFile(line)
245245
cc_added = join(CC_DIR, added)
246-
if not exists(cc_added) or isdir(cc_added) or added in files:
246+
if isdir(cc_added) or added in files:
247+
continue
248+
if not exists(cc_added):
249+
open(cc_added, 'w').close()
247250
continue
248251
history = cc_exec(['lshistory', '-fmt', '%o%m|%Nd|%Vn\\n', added], errors=False)
249252
if not history:

0 commit comments

Comments
 (0)