Skip to content

Commit a55a64f

Browse files
committed
fixed files to add
1 parent f065a0e commit a55a64f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

codes/sync.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ def __init__(self):
104104
# also check all files under ps
105105
all_files_under_pysrc = Lister(os.path.join(os.getcwd(), ps)).fill_paths
106106
for path in all_files_under_pysrc:
107-
diff = repo.git.diff(path)
108-
if diff:
109-
to_add.append(path)
107+
if not os.path.isdir(path):
108+
diff = repo.git.diff(path)
109+
if diff:
110+
to_add.append(path)
110111

111112
if len(to_add) > 0:
112113
print("\nFiles to be added At this time:")

0 commit comments

Comments
 (0)