We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f065a0e commit a55a64fCopy full SHA for a55a64f
codes/sync.py
@@ -104,9 +104,10 @@ def __init__(self):
104
# also check all files under ps
105
all_files_under_pysrc = Lister(os.path.join(os.getcwd(), ps)).fill_paths
106
for path in all_files_under_pysrc:
107
- diff = repo.git.diff(path)
108
- if diff:
109
- to_add.append(path)
+ if not os.path.isdir(path):
+ diff = repo.git.diff(path)
+ if diff:
110
+ to_add.append(path)
111
112
if len(to_add) > 0:
113
print("\nFiles to be added At this time:")
0 commit comments