🏡 index : ~doyle/dave.git

author Jordan Doyle <jordan@doyle.wf> 2017-07-31 18:54:34.0 +00:00:00
committer GitHub <noreply@github.com> 2017-07-31 18:54:34.0 +00:00:00
commit
9c39d2e62d5763f0f5442890a243e583cd3a5ba1 [patch]
tree
45df345bd137359f786bb2c576b61d7c8df01d52
parent
3cf92ed056fbfd076d025a61dd4ef539baa5b643
download
9c39d2e62d5763f0f5442890a243e583cd3a5ba1.tar.gz

Change split text for git log



Diff

 dave/dave.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dave/dave.py b/dave/dave.py
index cb9c920..17876f3 100644
--- a/dave/dave.py
+++ b/dave/dave.py
@@ -147,10 +147,10 @@ def autopull():

    if not "Already up-to-date" in str(output):
        # check latest commit message
        args = ["git", "log", "-1", "--pretty=format:{}".format(",".join([
        args = ["git", "log", "-1", "--pretty=format:{}".format("|||".join([
            "%h", "%s", "%at", "%an", "%ae"
        ]))]
        output = subprocess.check_output(args).split(b",")
        output = subprocess.check_output(args).split(b"|||")
        log.msg("Pulled latest commit.")

        # get a shortened git commit url