when running git-update as `py git-update` (which is convenient on
windows), SCRIPTDIR is '' instead of '.'. Fix that with normpath.
Printing emdash (U+2014) doesn't work on windows because it isn't in
cp437. Change it to hyphen.
https://bugzilla.gnome.org/show_bug.cgi?id=774636
from common import accept_command
-SCRIPTDIR = os.path.dirname(__file__)
+SCRIPTDIR = os.path.normpath(os.path.dirname(__file__))
def manifest_get_commits(manifest):
commit_message = git("show", repository_path=repo_dir).split("\n")
- print(u" -> %s%s%s — %s" % (Colors.HEADER, commit_message[0][7:14], Colors.ENDC,
+ print(u" -> %s%s%s - %s" % (Colors.HEADER, commit_message[0][7:14], Colors.ENDC,
commit_message[4].strip()))
return True