forked from espruino/Espruino
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsync_fork.py
More file actions
25 lines (19 loc) · 838 Bytes
/
sync_fork.py
File metadata and controls
25 lines (19 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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("--------------------------------------------------------------------------------")