| File gitconfig changed (mode: 100644) (index 786c3d9..cebb31a) |
| 29 |
29 |
pend = log origin/master..HEAD |
pend = log origin/master..HEAD |
| 30 |
30 |
# to be used if upstream suddenly renamed master branch |
# to be used if upstream suddenly renamed master branch |
| 31 |
31 |
enslave = !run() { \n\ |
enslave = !run() { \n\ |
| 32 |
|
if [ -z "$1" ]";" then \n\ |
|
|
32 |
|
remote=${1:-origin}";" \n\ |
|
33 |
|
if [ -z \"$remote\" ]";" then \n\ |
| 33 |
34 |
echo 'error: remote name must be provided as an argument' \n\ |
echo 'error: remote name must be provided as an argument' \n\ |
| 34 |
35 |
return 1 \n\ |
return 1 \n\ |
| 35 |
36 |
fi \n\ |
fi \n\ |
| 36 |
|
if [ -n "$2$3$4$5" ]\n then \n\ |
|
|
37 |
|
if [ -n \"$2$3$4$5\" ]\n then \n\ |
| 37 |
38 |
echo 'error: expected only one argument' \n\ |
echo 'error: expected only one argument' \n\ |
| 38 |
39 |
return 1 \n\ |
return 1 \n\ |
| 39 |
40 |
fi \n\ |
fi \n\ |
| 40 |
|
git config --local --add "remote.$1.fetch" "+refs/heads/main:refs/remotes/$1/master" \n\ |
|
| 41 |
|
git config --local --add "remote.$1.push" refs/heads/master:refs/heads/main \n\ |
|
|
41 |
|
git config --local --add \"remote.$remote.fetch\" \"+refs/heads/main:refs/remotes/$remote/master\" \n\ |
|
42 |
|
git config --local --add \"remote.$remote.push\" refs/heads/master:refs/heads/main \n\ |
| 42 |
43 |
git config --local branch.master.merge refs/heads/main \n\ |
git config --local branch.master.merge refs/heads/main \n\ |
| 43 |
44 |
} && run |
} && run |
| 44 |
45 |
# to be used after cloning to get sane branch naming |
# to be used after cloning to get sane branch naming |