blob: f8902f3a23f5dded0dff2e5990d21b7c6c0860c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/env python3
# I know I have the extension of a bash file but secretly I am a python file
# Yes I know it will fuck up your linter
# Sadly we have to do it this way because once up on a time this actually was a bash file and we don't want to remake hundreds of symlinks
import sys
import os
(old, new, branch) = sys.stdin.read().split()
print("Old: '%s'" % old)
print("New: '%s'" % new)
print("Branch: '%s'" % branch)
print("Push to '%s' successful!" % os.getcwd().split(os.sep)[-2])
#!/bin/sh
#p=$(pwd)
#echo "Push '${p#/*/*/}' successful!"
|