Fix bug where all examples were assumed to be under version control
This commit is contained in:
@@ -101,12 +101,16 @@ def getGitInfo(exampleDir, exampleName):
|
|||||||
log = h.read()
|
log = h.read()
|
||||||
h.close()
|
h.close()
|
||||||
d = {}
|
d = {}
|
||||||
parts = log.split("|")
|
if log:
|
||||||
d["author"] = parts[0]
|
parts = log.split("|")
|
||||||
# compensate for spaces in git log time
|
d["author"] = parts[0]
|
||||||
td = parts[1].split(" ")
|
# compensate for spaces in git log time
|
||||||
td.insert(1, "T")
|
td = parts[1].split(" ")
|
||||||
d["date"] = "".join(td)
|
td.insert(1, "T")
|
||||||
|
d["date"] = "".join(td)
|
||||||
|
else:
|
||||||
|
d["author"] = ""
|
||||||
|
d["date"] = ""
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user