Commit a46048db1ccd55da41e29c36573ad93e98aa046f
Fix push bash function for branches with slashes
Author: xaizek
Author date (UTC): 2021-11-13 13:34
Committer name: xaizek
Committer date (UTC): 2021-11-13 13:34
Parent(s): 64dc033040f8c321d41142ebb139a4af3d9a2109
Signing key: 99DC5E4DB05F6BE2
Tree: 4dc626d670cc85e1f2d10ad100bc08fcfb625527
File |
Lines added |
Lines deleted |
bashrc |
2 |
1 |
File bashrc changed (mode: 100644) (index 6c24000..732140d) |
... |
... |
function rrebase() |
303 |
303 |
# push current branch to a remote (origin by default) |
# push current branch to a remote (origin by default) |
304 |
304 |
function push() |
function push() |
305 |
305 |
{ |
{ |
306 |
|
local current="$(basename $(git rev-parse --symbolic-full-name HEAD))" |
|
|
306 |
|
local current="$(git rev-parse --symbolic-full-name HEAD)" |
|
307 |
|
current="${current#*/*/}" |
307 |
308 |
|
|
308 |
309 |
if [ "$#" -eq "0" ]; then |
if [ "$#" -eq "0" ]; then |
309 |
310 |
local remote='origin' |
local remote='origin' |