Downloads
release
dev builds
extras
themes
Documentation
manual
wiki
device status
Support
forums
mailing lists
IRC
Development
bugs
patches
dev guide
Search
Donate
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Welcome to the Rockbox Technical Forums!
Rockbox Technical Forums
Rockbox Development
Starting Development and Compiling
Git Syntax
« previous
next »
Print
Pages: [
1
]
Author
Topic: Git Syntax (Read 2053 times)
gband
Member
Posts: 2
Git Syntax
«
on:
April 11, 2012, 08:12:36 PM »
What is the syntax in Git to download old source files?
I tried to get them from svn, but get an error.
svn checkout svn://svn.rockbox.org/rockbox/trunk -r r26927
svn: Can't connect to host 'svn.rockbox.org': Connection timed out
Logged
saratoga
Developer
Member
Posts: 9214
Re: Git Syntax
«
Reply #1 on:
April 11, 2012, 08:16:52 PM »
git checkout 'commit_hash'
If you don't know the hash, you can grep the git log or find it on the web interface.
Logged
torne
Developer
Member
Posts: 994
arf arf
Re: Git Syntax
«
Reply #2 on:
April 12, 2012, 05:40:45 AM »
You need to clone the repository first, following the instructions on
http://www.rockbox.org/wiki/UsingGit
Once you have a clone of the repository (which will be the latest version) you can check out a particular git hash with something like "git checkout 1a3bb83" (using the appropriate hash). If you want to find the git commit that corresponds to a particular old svn commit, one way to do this that's pretty easy is "git log --oneline --grep=@26927" (for the r26927 you quote), which will show you the commit in question, with the git hash at the start of the line.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.
gband
Member
Posts: 2
Re: Git Syntax
«
Reply #3 on:
April 12, 2012, 02:52:28 PM »
Thanks for the clear instructions.
After checking out the old source I get this error:
make: *** No rule to make target `/home/ubuntu/rockbox/firmware/asm/thread.h', needed by `/home/ubuntu/rockbox/build/apps/action.o'. Stop.
Logged
saratoga
Developer
Member
Posts: 9214
Re: Git Syntax
«
Reply #4 on:
April 12, 2012, 03:27:05 PM »
Looking at the logs, r26928 fixes a build error in r26927, so that might be normal. Alternatively, if you haven't rerun configure after reverting to an old check out, your build directory may be in a bad state.
Logged
Print
Pages: [
1
]
« previous
next »
Rockbox Technical Forums
Rockbox Development
Starting Development and Compiling
Git Syntax
SMF 2.0.19
|
SMF © 2021
,
Simple Machines
Rockbox Privacy Policy
XHTML
RSS
WAP2
Page created in 0.047 seconds with 18 queries.