mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
25 lines
838 B
Python
25 lines
838 B
Python
#!/usr/bin/env python
|
|
# coding=utf-8
|
|
|
|
from subprocess import check_output, call
|
|
import sys
|
|
|
|
if __name__ == '__main__':
|
|
REMOTES_CMD = ['git', 'remote', '-v']
|
|
FETCH_UPSTREAM_CMD = ['git', 'fetch', 'upstream']
|
|
CHECKOUT_MASTER_CMD = ['git', 'checkout', 'master']
|
|
MERGE_UPSTREAM_CMD = ['git', 'merge', 'upstream/master']
|
|
|
|
print("\nREMOTES:\t")
|
|
call(REMOTES_CMD)
|
|
print("--------------------------------------------------------------------------------")
|
|
|
|
print("\nFETCH:")
|
|
call(FETCH_UPSTREAM_CMD)
|
|
print("--------------------------------------------------------------------------------")
|
|
|
|
call(CHECKOUT_MASTER_CMD)
|
|
|
|
print("\nMERGE UPSTREAM MASTER:")
|
|
call(MERGE_UPSTREAM_CMD)
|
|
print("--------------------------------------------------------------------------------") |