Page 1 of 1

Upgrading a Git repository

Posted: June 1st, 2019, 4:16 pm
by pjmeli
I need some help.

I'm a noob wrt Git and running sabnzbd from a local Git repository.

I've been running SAB successfully running v2.3.8 from what (I think) is the Git Master in a folder on my Raspberry Pi

I did a Git pull request to update to 2.3.9 because my SAB install keeps throwing a warning that 2.3.9 is available…

After a restart I'm still running the same version 2.3.8. When I do another git pull it says I am already running the latest version.

What am I not seeing?

Regards,
Paul

Re: Upgrading a Git repository

Posted: June 2nd, 2019, 12:39 am
by sander
Which command do you use to run Sab?

Re: Upgrading a Git repository

Posted: June 2nd, 2019, 3:49 am
by Puzzled
Maybe you're on a tag, or maybe you're on a local branch that's not connected to the remote. What does "git branch -a" say?

Re: Upgrading a Git repository

Posted: June 2nd, 2019, 8:15 am
by pjmeli
Which command do you use to run Sab?
It's set up to run on startup.

Re: Upgrading a Git repository

Posted: June 2nd, 2019, 8:25 am
by pjmeli
What does "git branch -a" say?
Interesting:

Code: Select all

fatal: Not a git repository (or any of the parent directories): .git
Odd, because it runs fine. I must have set up my local repository incorrectly.

I put a Git directory in my ~/pi folder and:

Code: Select all

git clone https://githubdotcom/sabnzbd/sabnzbd.git (I can't post links)
cd sabnzbd
git checkout master
Then I figured out how to get it to run @ startup

Re: Upgrading a Git repository

Posted: June 2nd, 2019, 9:11 am
by pjmeli
OK I fixed it.

Created a new local repository using the code above, copied my sabnzbd.ini into the new repository and restarted:

Code: Select all

service sabnzbdplus restart
I think what I did wrong originally was to clone the repository without executing:

Code: Select all

git checkout master