|
@@ -8,13 +8,14 @@ import datalad.api as dl
|
|
loc = os.path.dirname(os.path.abspath(__file__))
|
|
loc = os.path.dirname(os.path.abspath(__file__))
|
|
print(loc)
|
|
print(loc)
|
|
os.chdir(loc)
|
|
os.chdir(loc)
|
|
|
|
+os.chdir('../')
|
|
#projectdir = dl.Repo(loc, create=False).get_toppath()
|
|
#projectdir = dl.Repo(loc, create=False).get_toppath()
|
|
|
|
|
|
# initialise
|
|
# initialise
|
|
if not os.path.isfile("06_dissemination/README_DISSEMINATION.md"):
|
|
if not os.path.isfile("06_dissemination/README_DISSEMINATION.md"):
|
|
print("running project repository initiation (first run)")
|
|
print("running project repository initiation (first run)")
|
|
dl.get(".", recursive=True, get_data=False)
|
|
dl.get(".", recursive=True, get_data=False)
|
|
- dl.update(merge=True, recursive=True)
|
|
|
|
|
|
+ dl.update(how='merge', recursive=True)
|
|
|
|
|
|
# Set commit message
|
|
# Set commit message
|
|
commitmessage = input("Optionally enter a commit message, and hit return: ")
|
|
commitmessage = input("Optionally enter a commit message, and hit return: ")
|
|
@@ -23,7 +24,7 @@ if not commitmessage:
|
|
commitmessage = "commit on" + {datetime.now().strftime('%Y-%m-%d')}
|
|
commitmessage = "commit on" + {datetime.now().strftime('%Y-%m-%d')}
|
|
|
|
|
|
# sync
|
|
# sync
|
|
-dl.update(merge=True, recursive=True)
|
|
|
|
|
|
+dl.update(how='merge', recursive=True)
|
|
dl.save(".", message=commitmessage, recursive=True)
|
|
dl.save(".", message=commitmessage, recursive=True)
|
|
dl.push(".", to="origin", recursive=True)
|
|
dl.push(".", to="origin", recursive=True)
|
|
|
|
|