XBMC official Git repository on GitHub (Team-XBMC's primary/head repo on github.com)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
darkscout Offline
Posting Freak
Posts: 2,148
Joined: Jul 2008
Reputation: 12
Post: #11
git branch?

[Image: aeKO.jpeg]
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
find quote
Montellese Offline
Team-XBMC Developer
Posts: 2,790
Joined: Jan 2009
Reputation: 20
Location: Switzerland
Post: #12
darkscout Wrote:git branch?

As far as I understand a "fork" on GitHub is not the same as a branch but I'm not 100% sure about the details and the differences.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

[Image: badge.gif]
find quote
hudo Offline
Fan
Posts: 450
Joined: Feb 2009
Reputation: 5
Location: xbmcmediacenter.com
Post: #13
Maybe dushmaniac can input some advice on this.

He 'created' a Dharma git and applied pvr branch patches on it and then he did it again a few days ago because of the main XBMC git cleanup/reborn/spawn.

It should be fairly easy, after one knows how it's done. Wink

I'm still learning git pull/push/rebase...

hudo
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 1,953
Joined: Feb 2009
Reputation: 24
Location: Heerlen, The Netherlands
Post: #14
you'll have to rename your previous fork first to anything other than "xbmc". then you'll have to create a new fork.

move or delete your earlier checked out sources and git clone your newly created fork.
if you had patches earlier, apply them again (hint: git format-patch & git am).

push it to your repo (origin/master) and your done.

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find quote
FireMan Offline
Member+
Posts: 188
Joined: Oct 2009
Reputation: 0
Post: #15
Unable to clone xbmc from github. This was after 1,2gb of download:

Code:
error: Unable to get pack file https://github.com/network/1217614.git//objects/pack/pack-44af50677486fc0f0996353d3ddf7ffd34d8ddb8.pack
Peer closed the TLS connection
error: Unable to find 6681c4cdfcc30ab9eacf7a8517d753bcdddcb871 under https://github.com/xbmc/xbmc.git
Cannot obtain needed object 6681c4cdfcc30ab9eacf7a8517d753bcdddcb871
while processing commit 1d81efd4dc0a589cefbbbf054fedec845fd6b401.
fatal: Fetch failed.

Sad
find quote
jhsrennie Offline
Team-XBMC Developer
Posts: 7,237
Joined: Nov 2008
Reputation: 117
Location: Chester, UK
Post: #16
Is this the correct way to do it? I use TortoiseGIT but it helpfully shows the command it's using:

1. git.exe clone --progress -v "https://jhsrennie@github.com/xbmc/xbmc.git" "D:\Dev\GIT\xbmc" to create a local copy of the repo. jhsrennie is my github username.

2. Make my changes

3. git commit to commit my changes to my local copy of the repo

4. git.exe push --progress "origin" master:master to push my changes up to the XBMC repository

Step 4 fails at the moment so am I doing this the correct way, and if so do I need to ask a member of the dev team to grant me push access?

http://wiki.xbmc.org/index.php?title=Git_Usage has blood curdling threats about "Never EVER force a push (non-fast-forward commit) to mainline". Can this be clarified for us git newbies? Is the problem overwriting code already pushed in by another dev? If so do you need to update your local archive then try again?

Finally the Git Usage article tells Linux/OSX users to update using git pull --rebase but doesn't mention Windows. Does this apply to Windows as well?

JR
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,187
Joined: Nov 2003
Reputation: 82
Post: #17
1) you, as a dev, need to clone with git@github:xbmc/xbmc.git (ssh). this is required for push access. see github for how to upload your ssh key.

git pull --rebase (and anything else mentioned) applies to windows as well, it's just harder to explain in those gui's (i for one never tried tortoisegit) Smile

also see the int forums.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2011-01-07 11:56 by spiff.)
find quote
WiSo Offline
Team-XBMC Developer
Posts: 2,484
Joined: Oct 2003
Reputation: 0
Location: Germany
Post: #18
I'll try to find some time to extend the wiki article for us windows users (split it like the FAQ). As I'm with git a noob too I can only cover the basics.
@jhsrennie: Make sure TheUni added your account on github (see the thread in our priv forum). The https url is fine for pushing too you just have to provide the password. The url spiff mentioned can be used if you work with ssh keys (which I have on my server but not for github atm).

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Montellese Offline
Team-XBMC Developer
Posts: 2,790
Joined: Jan 2009
Reputation: 20
Location: Switzerland
Post: #19
dushmaniac Wrote:you'll have to rename your previous fork first to anything other than "xbmc". then you'll have to create a new fork.

move or delete your earlier checked out sources and git clone your newly created fork.
if you had patches earlier, apply them again (hint: git format-patch & git am).

push it to your repo (origin/master) and your done.
Thanks for the rename hint. Why didn't I think off that? Working on getting all the right patches into my new fork now. Thanks again for the explanation.

FireMan Wrote:Unable to clone xbmc from github. This was after 1,2gb of download:

Why did you have to download 1.2 GB? I just forked and cloned and only had to download about 270 MB. Btw nice cleanup of the repository Big Grin

spiff Wrote:git pull --rebase (and anything else mentioned) applies to windows as well, it's just harder to explain in those gui's (i for one never tried tortoisegit) Smile

I tried TortoiseGit but I don't like it (compared to TortoiseSVN). I installed the "Git Bash" from msysgit and do everything from command line which is much better.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

[Image: badge.gif]
find quote
FireMan Offline
Member+
Posts: 188
Joined: Oct 2009
Reputation: 0
Post: #20
I don't get it... Tried 3 times, and aways download 1.1gb and return me a error:

Code:
xbmc@ASRock-QJM:~/git$ git clone -v https://github.com/xbmc/xbmc.git
Initialized empty Git repository in /home/xbmc/git/xbmc/.git/
got 97573d8c97b0effc446e4bee8a2cd107655f6c40
walk 97573d8c97b0effc446e4bee8a2cd107655f6c40
Getting alternates list for https://github.com/xbmc/xbmc.git
Also look at https://github.com/network/1217614.git/
Getting pack list for https://github.com/xbmc/xbmc.git
Getting index for pack f0508c611c450ecdd9d3e00626f7d4e51f891069
Getting pack list for https://github.com/network/1217614.git/
Getting index for pack 85f4211f33c1b3f9a92932789babf4e151f11c3d
Getting pack 85f4211f33c1b3f9a92932789babf4e151f11c3d
which contains 6681c4cdfcc30ab9eacf7a8517d753bcdddcb871
got 6c3df96c99f7bd9c182eb87fe1f5f46810c4737b
got f55f3478843f249e5132ccd823782fd910f2714d
error: Unable to get pack file https://github.com/network/1217614.git//objects/pack/pack-85f4211f33c1b3f9a92932789babf4e151f11c3d.pack
Peer closed the TLS connection
error: Unable to find 6681c4cdfcc30ab9eacf7a8517d753bcdddcb871 under https://github.com/xbmc/xbmc.git
Cannot obtain needed object 6681c4cdfcc30ab9eacf7a8517d753bcdddcb871
while processing commit 97573d8c97b0effc446e4bee8a2cd107655f6c40.
fatal: Fetch failed.

I also tried with '-o Dharma', and also downloaded 1.1gb and returned the same error.

Cheers.
find quote