https://gitpython.readthedocs.io/en/sta ... le-git.cmd
Thanks for that.
Code: Select all
if "git pull" in gitrepo.status():
print('\t' + repo[0] + ' ' + 'has an update')
status = re.findall(r"Your branch (.*)\,", gitrepo.status())
# print how many commits we are behind master
print('\t\t' + repo[0] + ' ' + status[0] + '\n')
Code: Select all
[foo@foo Glass]$ git status origin
On branch master
nothing to commit, working tree clean
[foo@foo Glass]$ git fetch
From https://github.com/triplus/Glass
* branch HEAD -> FETCH_HEAD
[foo@foo Glass]$ git pull
From https://github.com/triplus/Glass
* branch HEAD -> FETCH_HEAD
Updating 037588b..d7b73e6
Fast-forward
GlassGui.py | 183 +++++++++++++++++++++++++++++++++++++
InitGui.py | 28 ++++++
License/lgpl-2.1.txt | 502 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
README.md | 35 +++++++-
Resources/images/Glass.png | Bin 0 -> 9959 bytes
5 files changed, 747 insertions(+), 1 deletion(-)
create mode 100644 GlassGui.py
create mode 100644 InitGui.py
create mode 100644 License/lgpl-2.1.txt
create mode 100644 Resources/images/Glass.png
[foo@foo Glass]$ ls
GlassGui.py InitGui.py License README.md Resources
[foo@foo Glass]$ git reset --hard HEAD~1
HEAD is now at 037588b Initial commit
[foo@foo Glass]$ git status
On branch master
nothing to commit, working tree clean
@yorik do you mind weighing in on this? I'm so close to making this happen.yorik wrote:
Would you be interested debugging this script. I'm at a loss here.openBrain wrote:
I'm interested to help (at least
Great. I'll post it here instead of PM that way if anyone else wants to help they're more than invited.openBrain wrote: ↑Sun Nov 03, 2019 11:13 pmI'm interested to help (at least). Unfortunately probably very few spare time in the coming days. Would you be able to send a PM with a concise summary of what you're trying to achieve, where you are and what is blocking ATM? So I can quickly have a macro vision. Pointers to existing posts are OK as well.
![]()