add script to handle local git checkouts (draft)
This commit is contained in:
parent
12da7d852a
commit
b64416bd82
1 changed files with 19 additions and 0 deletions
19
git-repostate.py
Normal file
19
git-repostate.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
|
||||
curr_pwd = os.getcwd()
|
||||
cont_dir = os.scandir(curr_pwd)
|
||||
|
||||
with os.scandir(curr_pwd) as it:
|
||||
for entry in it:
|
||||
if not entry.name.startswith('.') and entry.is_dir():
|
||||
# check if directory contains a .git subdirectory
|
||||
with os.scandir(entry.name) as folder:
|
||||
#print(folder)
|
||||
for foobar in folder:
|
||||
print("debug: " + foobar.name)
|
||||
|
||||
#print(entry.name)
|
||||
|
||||
# chdir(path)
|
||||
Loading…
Add table
Add a link
Reference in a new issue