• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Git & Github questions

I've set up a test account on github. I hope the new forks helps me to trace this down.

Did python get updated on your local system?

File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 435, in error
return self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
 
Upvote 0
Did python get updated on your local system?

File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 435, in error
return self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)

Maaaaaby? If i can get my daughter to kick on my build rig, I'll remote in to it and see if I chan check the version number. And see what it should be.
I was thinking that it may of had something to do with an Ubuntu update.
 
Upvote 0
Is this for git push -u origin branch? If you repo sync you can not push from there you need to git clone with ssh the repo and then make changes and push back. Then repo sync to pull back in the changes.

I have the repo sync folder where i make changes and test. Then I have a second folder where I copy changes and then git push them back up to git. I then delete all folders in the repo sync folder just not the .repo folder. Then I repo sync to pull in the changes. This may not be best practice but seems to work for me :)
 
Upvote 0
Is this for git push -u origin branch? If you repo sync you can not push from there you need to git clone with ssh the repo and then make changes and push back. Then repo sync to pull back in the changes.

I have the repo sync folder where i make changes and test. Then I have a second folder where I copy changes and then git push them back up to git. I then delete all folders in the repo sync folder just not the .repo folder. Then I repo sync to pull in the changes. This may not be best practice but seems to work for me :)

Most of my projects don't have a branch. I guess it's because the default.xml is set to use gingerbread as the default branch. I had a point where I had to push up to github and I think I had to force it (git push -f github gingerbread). I don't do most of my commits from my local repo, I usually do them from the website.
 
Upvote 0
When we run a
Code:
$ repo sync
the branch that is in the manifest.xml is pulled, but the branch isn't created on the local machine. What I have found is if you checkout that branch while on the "no branch" you will have the link and you could push up the changes to your remote repo.
Code:
git checkout -t github/cm7


This will link the remote "github/cm7" to cm7 on the local with the "-t" argument and if you do
Code:
git branch -a
you will see
branch.png


As you can see, I have two local branches and four remote branches with one included in the manifest I guess (remotes/m/cm7)
 
  • Like
Reactions: BSydz
Upvote 0
When we pull a project down via a repo sync we don't checkout any branches.
gitbranch.png

I like to track the branch that's associated with project section
Code:
git checkout -t github/ics
Obviously we would use the branch that we see when looking at all of the branches. It does have to have the upstream(github or origin or whatever) and the branch(ics, dsmryder, master)
Then I will make a new branch and check it out (at the same time)
Code:
git checkout -b (new branch name)
When that's all done your polling of branch -a looks like this
tracking.png

You can make what ever changes you want, preferably to the branch that was created. When you have your changes commited (many ways to do it) push the changes up
push.png
 
  • Like
Reactions: BSydz
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones