Closed AbdealiLoKo closed 2 years ago
If you look at the type
for update_scm_breeze
and read the source code for the function you'll see the steps that you need to take to update.
$ type update_scm_breeze
update_scm_breeze is a function
update_scm_breeze ()
{
currDir=$PWD;
exec_scmb_expand_args builtin cd "$scmbDir";
oldHEAD=$(git rev-parse HEAD 2> /dev/null);
git pull origin master;
source "$scmbDir/lib/scm_breeze.sh";
_create_or_patch_scmbrc $oldHEAD;
source "$scmbDir/scm_breeze.sh";
exec_scmb_expand_args builtin cd "$currDir"
}
Do a quick check that the env variable is defined for scmbDir.
$ env | grep scmbDir
scmbDir=/home/ghthor/.scm_breeze
cd "$scmbDir"
to scm_breeze directorygit pull origin master
source "$scmbDir/lib/scm_breeze.sh"
source "$scmbDir/scm_breeze.sh"
This step is unnecessary _create_or_patch_scmbrc $oldHEAD
.
I am using Windows 10 + Ubuntu 18.04 WSL2 I don't have issues with git in any of my other repos/projects - and I use git:// for all of them (I have a ed25519 SSH key setup)
You should be using ssh://
or https://
with github repositories. See: https://github.blog/2021-09-01-improving-git-protocol-security-github/
If git pull origin master
fails due to this error about unauthenticated git protocol usage you'll need to update git remote's URL.
$ cd "$scmbDir" && git remote set-url origin https://github.com/scmbreeze/scm_breeze
Seems like doing git remote set-url origin https://github.com/scmbreeze/scm_breeze
worked.
Should the install instructions in the README be changed to:
git clone https://github.com/scmbreeze/scm_breeze.git ~/.scm_breeze
?
Either way - it's working for me, thanks a lot !
Yes, the README should be updated as it's using git://
good point.
I installed scm-breeze a few weeks ago. Recently raised the bug https://github.com/scmbreeze/scm_breeze/issues/313 which I see has been solved in master, So I thought - I need to upgrade to get it fixed for me.
I ran
update_scm_breeze
as was instructed in the README. And I get this error:I am using Windows 10 + Ubuntu 18.04 WSL2 I don't have issues with
git
in any of my other repos/projects - and I use git:// for all of them (I have aed25519
SSH key setup)Is there some special configuration
update_scm_breeze
needs ?