I’m hosting a read-only mirror of Code::Blocks repo on my server. This will give read-only access to everyone. I’m also hosting a read-only Git repo. This will give us access to Git repo to everyone who loves Git (including myself).
You can check out source via svn by issuing the following command-
svn checkout svn://cb.biplab.in/codeblocks/trunk
You can browse svn repo using WebSVN interface at the following url-
http://cb.biplab.in/websvn/
You can clone git repo by issuing following command-
git clone git://cb.biplab.in/codeblocks.git
You can browse git repo, download source tarball at the following url-
http://cb.biplab.in/cgit/
These repos are refreshed every 30 minutes. So if you find that my repo is not updated, then try again after sometime.
If you face any issue accessing any repo, please let me know.
Thanks Jens, I have download your codeblocks.git.tar.xz, but in-fact I don't have much knowledge to handle this.
Refer to some questions and answers from Stackoverflow, such as:
http://stackoverflow.com/questions/268736/git-svn-whats-the-equivalent-to-svn-switch-relocate
http://www.sanityinc.com/articles/relocating-git-svn-repositories/
It looks like the SHA number is depend on the SVN URL of the repo.
For example, I have a partial clone(not the full svn history, just some revisions since 2013 May) of our svn repo, the last commit show is:
SHA-1: 19da0597d2f93510a79d58126ee8b816ac58706d
* * compiler: fix MinGW auto detection, we actually distribute 'mingw32-make' (not 'make')
git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9492 2a5c6006-c6dd-42ca-98ab-0921f2732cef
Now, I read this information from your cgit web interface: http://cgit.jenslody.de/codeblocks/commit/?id=a8fd2cf9415f205012f5389fde815a867061924b
author alpha0010 <alpha0010@2a5c6006-c6dd-42ca-98ab-0921f2732cef> 2013-12-16 16:21:24 (GMT)
committer alpha0010 <alpha0010@2a5c6006-c6dd-42ca-98ab-0921f2732cef> 2013-12-16 16:21:24 (GMT)
commit a8fd2cf9415f205012f5389fde815a867061924b (patch)
tree 95187bd26694326a05809d029ffe0838e41d88bc
parent f2595380d8339b12d58bcf4be63e61244304e311 (diff)
download codeblocks-a8fd2cf9415f205012f5389fde815a867061924b.tar.bz2
codeblocks-a8fd2cf9415f205012f5389fde815a867061924b.tar.xz
* compiler: fix MinGW auto detection, we actually distribute 'mingw32-make' (not 'make')HEADmaster
git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9492 2a5c6006-c6dd-42ca-98ab-0921f2732cef
From biplab's cgit page: http://cb.biplab.in/cgit/codeblocks/commit/
author Alpha 2013-12-16 16:21:24 (GMT)
committer Alpha 2013-12-16 16:21:24 (GMT)
commit 313b1688b4e96cd2e2eb7fab4c7c1404c5d99eb8 (patch)
tree 95187bd26694326a05809d029ffe0838e41d88bc
parent 8b5ad1b3301805ada8aa26500ce29e226fa07d23 (diff)
download codeblocks-master.zip
codeblocks-master.tar.gz
codeblocks-master.tar.bz2
* compiler: fix MinGW auto detection, we actually distribute 'mingw32-make' (not 'make')HEADmaster
git-svn-id: svn://svn.code.sf.net/p/codeblocks/code/trunk@9492 2a5c6006-c6dd-42ca-98ab-0921f2732cef
We have different URLs, for me, I need to use the URL support write access, so I use https, yours is http, and biplab is svn.
BTW: I have check OBF's
Here, in SVN 9482, it is https://github.com/obfuscated/codeblocks_sf/commit/4a62342a9b7089a399d88d13e239b10cb0e562a1
* reverted revision 9482, as it is not working under Windows
git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9487 2a5c6006-c6dd-42ca-98ab-0921f2732cef
and mine is:
SHA-1: 0f5e0bf3386695c15051c922b67f4e7b72151215
* * reverted revision 9482, as it is not working under Windows
git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9487 2a5c6006-c6dd-42ca-98ab-0921f2732cef
Look, we have different SHA number even we have same SVN URL. :(
But I think that your git repo synchronize with the svn by hand? (not automatically?)
Yes, but if your git svn is working you can always run "git svn rebase" to synchronize with svn and then do "git svn dcommit".
I can probably add some automatic synchronization to my repo if there is interest. I've not bothered to research how to do it, yet.
Yes, an automatic synchronization method is great!
@Jen:
I try to use your achieve file, and found some issue, see the log:
I just run the command:
zyh23@zyh /f/jens-codeblocks-mirror
$ tar xvfJ ./codeblocks.git.tar.xz
...
zyh23@zyh /f/jens-codeblocks-mirror/codeblocks.git
$ git reset --hard HEAD
Checking out files: 100% (5639/5639), done.
HEAD is now at a8fd2cf * compiler: fix MinGW auto detection, we actually distrib ute 'mingw32-make' (not 'make')
zyh23@zyh /f/jens-codeblocks-mirror/codeblocks.git
$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: debian/codeblocks-contrib.postinst
# modified: debian/codeblocks.postinst
# modified: src/exchndl.dll
# modified: src/mac_pack
# modified: src/plugins/contrib/SpellChecker/hunspell/config.guess
# modified: src/plugins/contrib/SpellChecker/hunspell/config.rpath
# modified: src/plugins/contrib/SpellChecker/hunspell/config.sub
# modified: src/plugins/contrib/SpellChecker/hunspell/configure
# modified: src/plugins/contrib/SpellChecker/hunspell/depcomp
# modified: src/plugins/contrib/SpellChecker/hunspell/install-sh
# modified: src/plugins/contrib/SpellChecker/hunspell/intl/config.charse t
# modified: src/plugins/contrib/SpellChecker/hunspell/ltmain.sh
# modified: src/plugins/contrib/SpellChecker/hunspell/missing
# modified: src/plugins/contrib/SpellChecker/hunspell/mkinstalldirs
# modified: src/plugins/contrib/SpellChecker/hunspell/src/tools/affixcom press
# modified: src/plugins/contrib/SpellChecker/hunspell/src/tools/ispellaf f2myspell
# modified: src/plugins/contrib/SpellChecker/hunspell/src/tools/makealia s
# modified: src/plugins/contrib/SpellChecker/hunspell/src/tools/wordform s
# modified: src/plugins/contrib/SpellChecker/hunspell/src/tools/wordlist 2hunspell
# modified: src/plugins/contrib/SpellChecker/wxspellchecker/build/config .guess
# modified: src/plugins/contrib/SpellChecker/wxspellchecker/build/config .sub
# modified: src/plugins/contrib/help_plugin/zlib/configure
# modified: src/plugins/contrib/help_plugin/zlib/make_vms.com
# modified: src/plugins/contrib/wxContribItems/wxchart/build/acregen.sh
# modified: src/plugins/contrib/wxContribItems/wxchart/build/config.gues s
# modified: src/plugins/contrib/wxContribItems/wxchart/build/config.sub
# modified: src/plugins/contrib/wxContribItems/wxchart/build/install.sh
# modified: src/plugins/contrib/wxContribItems/wxchart/configure
# modified: src/plugins/contrib/wxContribItems/wxthings/build/acregen.sh
# modified: src/plugins/contrib/wxContribItems/wxthings/build/config.gue ss
# modified: src/plugins/contrib/wxContribItems/wxthings/build/config.sub
# modified: src/plugins/contrib/wxContribItems/wxthings/build/install.sh
# modified: src/plugins/contrib/wxContribItems/wxthings/configure
# modified: src/sdk/resources/lexers/lexer_bash.sample
# modified: src/sdk/wxpropgrid/build/config.guess
# modified: src/sdk/wxpropgrid/build/config.sub
# modified: src/sdk/wxpropgrid/configure
# modified: src/sdk/wxscintilla/src/scintilla_generator/gen_iface.py
# modified: src/update
# modified: src/update29
# modified: src/update30
#
no changes added to commit (use "git add" and/or "git commit -a")
zyh23@zyh /f/jens-codeblocks-mirror/codeblocks.git
$ git svn fetch
M debian/changelog
M codeblocks.spec.in
M update_revision.sh
r9493 = ce9d1a24a0a0d2d945dfed9d2493a353c21e592c (refs/remotes/release-13.12)
M debian/changelog
M codeblocks.spec.in
r9494 = 4358e1d0ed886f1581ed4f19863418c8b4d9fbfc (refs/remotes/trunk)
zyh23@zyh /f/jens-codeblocks-mirror/codeblocks.git
$ git checkout -b trunk --track remotes/trunk
M debian/codeblocks-contrib.postinst
M debian/codeblocks.postinst
M src/exchndl.dll
M src/mac_pack
M src/plugins/contrib/SpellChecker/hunspell/config.guess
M src/plugins/contrib/SpellChecker/hunspell/config.rpath
M src/plugins/contrib/SpellChecker/hunspell/config.sub
M src/plugins/contrib/SpellChecker/hunspell/configure
M src/plugins/contrib/SpellChecker/hunspell/depcomp
M src/plugins/contrib/SpellChecker/hunspell/install-sh
M src/plugins/contrib/SpellChecker/hunspell/intl/config.charset
M src/plugins/contrib/SpellChecker/hunspell/ltmain.sh
M src/plugins/contrib/SpellChecker/hunspell/missing
M src/plugins/contrib/SpellChecker/hunspell/mkinstalldirs
M src/plugins/contrib/SpellChecker/hunspell/src/tools/affixcompress
M src/plugins/contrib/SpellChecker/hunspell/src/tools/ispellaff2myspell
M src/plugins/contrib/SpellChecker/hunspell/src/tools/makealias
M src/plugins/contrib/SpellChecker/hunspell/src/tools/wordforms
M src/plugins/contrib/SpellChecker/hunspell/src/tools/wordlist2hunspell
M src/plugins/contrib/SpellChecker/wxspellchecker/build/config.guess
M src/plugins/contrib/SpellChecker/wxspellchecker/build/config.sub
M src/plugins/contrib/help_plugin/zlib/configure
M src/plugins/contrib/help_plugin/zlib/make_vms.com
M src/plugins/contrib/wxContribItems/wxchart/build/acregen.sh
M src/plugins/contrib/wxContribItems/wxchart/build/config.guess
M src/plugins/contrib/wxContribItems/wxchart/build/config.sub
M src/plugins/contrib/wxContribItems/wxchart/build/install.sh
M src/plugins/contrib/wxContribItems/wxchart/configure
M src/plugins/contrib/wxContribItems/wxthings/build/acregen.sh
M src/plugins/contrib/wxContribItems/wxthings/build/config.guess
M src/plugins/contrib/wxContribItems/wxthings/build/config.sub
M src/plugins/contrib/wxContribItems/wxthings/build/install.sh
M src/plugins/contrib/wxContribItems/wxthings/configure
M src/sdk/resources/lexers/lexer_bash.sample
M src/sdk/wxpropgrid/build/config.guess
M src/sdk/wxpropgrid/build/config.sub
M src/sdk/wxpropgrid/configure
M src/sdk/wxscintilla/src/scintilla_generator/gen_iface.py
M src/update
M src/update29
M src/update30
fatal: Cannot setup tracking information; starting point 'remotes/trunk' is not a branch.
zyh23@zyh /f/jens-codeblocks-mirror/codeblocks.git
$ git branch -a
* master
release_12.11
release_13.12
remotes/CODEBLOCKS_1_0RC2
remotes/CODEBLOCKS_1_0RC2_FINAL
remotes/LAB
remotes/New_wxSmith
remotes/New_wxSmith@2977
remotes/VERSION_1_0
remotes/aui_test
remotes/backup_of_trunk_before_switch_to_codecompletion_refactrong
remotes/cf
remotes/codeblocks_console
remotes/codecompletion_refactoring
remotes/ex
remotes/ex@2936
remotes/release-10.05
remotes/release-12.11
remotes/release-13.12
remotes/release-8.02
remotes/release-xx.yy
remotes/rick_s_playground
remotes/sc
remotes/scintilla
remotes/scripting_squirrel
remotes/sqrat
remotes/tags/10.05
remotes/tags/8.02
remotes/tags/CODEBLOCKS_1_0_BETA1
remotes/tags/CODEBLOCKS_1_0_BETA2
remotes/tags/CODEBLOCKS_1_0_BETA3
remotes/tags/CODEBLOCKS_1_0_BETA4
remotes/tags/CODEBLOCKS_1_0_BETA5
remotes/tags/CODEBLOCKS_1_0_BETA6
remotes/tags/CODEBLOCKS_1_0_BETA7
remotes/tags/CODEBLOCKS_1_0_FINALBETA
remotes/tags/CODEBLOCKS_1_0_RC1
remotes/tags/CODEBLOCKS_1_0_RC1_1
remotes/tags/SNAPSHOT_24_6_05
remotes/tags/SNAPSHOT_28052005
remotes/tags/SNAPSHOT_5_5_05
remotes/tags/SNAPSHOT_AUG_04_2005
remotes/tags/SNAPSHOT_AUG_11_2005
remotes/tags/SNAPSHOT_AUG_17_2005
remotes/tags/SNAPSHOT_UNICODE
remotes/tags/VERSION_1_0_MERGE_TO_HEAD
remotes/tags/before_merge_codecompletion_refactoring
remotes/tags/head_merged_to_yt
remotes/tags/wiley1
remotes/tags/wxpropgrid_debugger_merge_candidate
remotes/trunk
remotes/wxfnb_to_wxaui
remotes/wxpropgrid_debugger
remotes/wxsmith_addons
remotes/xml_compiler
remotes/ym_gdb
remotes/yt
zyh23@zyh /f/jens-codeblocks-mirror/codeblocks.git
$ git svn rebase
debian/codeblocks-contrib.postinst: needs update
debian/codeblocks.postinst: needs update
src/exchndl.dll: needs update
src/mac_pack: needs update
src/plugins/contrib/SpellChecker/hunspell/config.guess: needs update
src/plugins/contrib/SpellChecker/hunspell/config.rpath: needs update
src/plugins/contrib/SpellChecker/hunspell/config.sub: needs update
src/plugins/contrib/SpellChecker/hunspell/configure: needs update
src/plugins/contrib/SpellChecker/hunspell/depcomp: needs update
src/plugins/contrib/SpellChecker/hunspell/install-sh: needs update
src/plugins/contrib/SpellChecker/hunspell/intl/config.charset: needs update
src/plugins/contrib/SpellChecker/hunspell/ltmain.sh: needs update
src/plugins/contrib/SpellChecker/hunspell/missing: needs update
src/plugins/contrib/SpellChecker/hunspell/mkinstalldirs: needs update
src/plugins/contrib/SpellChecker/hunspell/src/tools/affixcompress: needs update
src/plugins/contrib/SpellChecker/hunspell/src/tools/ispellaff2myspell: needs update
src/plugins/contrib/SpellChecker/hunspell/src/tools/makealias: needs update
src/plugins/contrib/SpellChecker/hunspell/src/tools/wordforms: needs update
src/plugins/contrib/SpellChecker/hunspell/src/tools/wordlist2hunspell: needs update
src/plugins/contrib/SpellChecker/wxspellchecker/build/config.guess: needs update
src/plugins/contrib/SpellChecker/wxspellchecker/build/config.sub: needs update
src/plugins/contrib/help_plugin/zlib/configure: needs update
src/plugins/contrib/help_plugin/zlib/make_vms.com: needs update
src/plugins/contrib/wxContribItems/wxchart/build/acregen.sh: needs update
src/plugins/contrib/wxContribItems/wxchart/build/config.guess: needs update
src/plugins/contrib/wxContribItems/wxchart/build/config.sub: needs update
src/plugins/contrib/wxContribItems/wxchart/build/install.sh: needs update
src/plugins/contrib/wxContribItems/wxchart/configure: needs update
src/plugins/contrib/wxContribItems/wxthings/build/acregen.sh: needs update
src/plugins/contrib/wxContribItems/wxthings/build/config.guess: needs update
src/plugins/contrib/wxContribItems/wxthings/build/config.sub: needs update
src/plugins/contrib/wxContribItems/wxthings/build/install.sh: needs update
src/plugins/contrib/wxContribItems/wxthings/configure: needs update
src/sdk/resources/lexers/lexer_bash.sample: needs update
src/sdk/wxpropgrid/build/config.guess: needs update
src/sdk/wxpropgrid/build/config.sub: needs update
src/sdk/wxpropgrid/configure: needs update
src/sdk/wxscintilla/src/scintilla_generator/gen_iface.py: needs update
src/update: needs update
src/update29: needs update
src/update30: needs update
update-index --refresh: command returned error: 1
zyh23@zyh /f/jens-codeblocks-mirror/codeblocks.git
It looks like git svn fetch works Ok, but git svn rebase failed.
BTW: I'm using MSYS2 (x32-msys2-20131003.tar.xz (http://sourceforge.net/projects/msys2/files/Alpha-versions/32-bit/x32-msys2-20131003.tar.xz/download), newer version exists in msys2 site) under WinXP.
Try git reset --hard remotes/trunk if you are in master branch.
I suggest removing everything, except the .git folder or unpack in a fresh folder.
jens@jenslody:~/tmp/codeblocks.git (master *)$ ll
insgesamt 0
jens@jenslody:~/tmp/codeblocks.git (master *)$ git reset --hard remotes/trunk
HEAD is now at a8fd2cf * compiler: fix MinGW auto detection, we actually distribute 'mingw32-make' (not 'make')
jens@jenslody:~/tmp/codeblocks.git (master)$ ll
insgesamt 940
-rw-r--r-- 1 jens jens 25558 Dez 22 09:36 acinclude.m4
-rw-r--r-- 1 jens jens 1711 Dez 22 09:36 AUTHORS
-rwxr-xr-x 1 jens jens 2169 Dez 22 09:36 bootstrap
-rw-r--r-- 1 jens jens 120 Dez 22 09:36 BUGS
-rw-r--r-- 1 jens jens 3062 Dez 22 09:36 BUILD
-rw-r--r-- 1 jens jens 761895 Dez 22 09:36 ChangeLog
-rw-r--r-- 1 jens jens 13292 Dez 22 09:36 ChangeLog.xsl
-rw-r--r-- 1 jens jens 536 Dez 22 09:36 codeblocks.pc.in
-rw-r--r-- 1 jens jens 4143 Dez 22 09:36 codeblocks.plist.in
-rw-r--r-- 1 jens jens 17387 Dez 22 09:36 codeblocks.spec.in
-rw-r--r-- 1 jens jens 3058 Dez 22 09:36 COMPILERS
-rw-r--r-- 1 jens jens 18940 Dez 22 09:36 configure.ac
-rw-r--r-- 1 jens jens 35148 Dez 22 09:36 COPYING
drwxr-xr-x 4 jens jens 4096 Dez 22 09:36 debian
-rw-r--r-- 1 jens jens 573 Dez 22 09:36 Makefile.am
-rw-r--r-- 1 jens jens 78 Dez 22 09:36 NEWS
-rw-r--r-- 1 jens jens 187 Dez 22 09:36 README
-rw-r--r-- 1 jens jens 463 Dez 22 09:36 README.debian
drwxr-xr-x 14 jens jens 4096 Dez 22 09:36 src
-rw-r--r-- 1 jens jens 40 Dez 22 09:36 TODO
-rwxr-xr-x 1 jens jens 1219 Dez 22 09:36 updateChangeLog.sh
-rwxr-xr-x 1 jens jens 2261 Dez 22 09:36 update_revision.sh
jens@jenslody:~/tmp/codeblocks.git (master)$ git status
# On branch master
nothing to commit (working directory clean)
jens@jenslody:~/tmp/codeblocks.git (master)$ git svn rebase --all
M debian/changelog
M codeblocks.spec.in
M update_revision.sh
r9493 = ce9d1a24a0a0d2d945dfed9d2493a353c21e592c (refs/remotes/release-13.12)
M debian/changelog
M codeblocks.spec.in
r9494 = 4358e1d0ed886f1581ed4f19863418c8b4d9fbfc (refs/remotes/trunk)
First, rewinding head to replay your work on top of it...
Fast-forwarded master to refs/remotes/trunk.
jens@jenslody:~/tmp/codeblocks.git (master)$ git status
# On branch master
nothing to commit (working directory clean)
jens@jenslody:~/tmp/codeblocks.git (master)$
It should also work as you did it (at least it works on linux).
Can you try it with TortoiseGit or another real windows git, not in a msys shell ?
Can you check the md5sum of the downloade archive ?
It should be ca06385f8617381f6a6ad7e05a47c2bf
It should also work as you did it (at least it works on linux).
Can you try it with TortoiseGit or another real windows git, not in a msys shell ?
Maybe, you have never tried git under Windows. Under Windows, I think there are two distributions, on called msysgit, which is used by TortoiseGit, and is based on MSYS1(the msys version supplied by www.mingw.org), the other one is MSYS2 as I said before, it was new and I think it is also modern and good (ported from latest cygwin source code).
I just tried under msysgit, I get the same result:
zyh23@ZYH /f/jens-codeblocks-mirror/codeblocks.git (master)
$ git reset --hard remotes/trunk
Checking out files: 100% (5639/5639), done.
HEAD is now at a8fd2cf * compiler: fix MinGW auto detection, we actually distrib
ute 'mingw32-make' (not 'make')
zyh23@ZYH /f/jens-codeblocks-mirror/codeblocks.git (master)
$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: bootstrap
# modified: debian/get-orig-source
# modified: debian/get-orig-source-from-svn
# modified: debian/rules
# modified: src/batch_build_all
# modified: src/batch_build_core
# modified: src/mac_pack
# modified: src/plugins/contrib/DoxyBlocks/update
# modified: src/plugins/contrib/DoxyBlocks/update29
# modified: src/plugins/contrib/DoxyBlocks/update30
# modified: src/plugins/contrib/IncrementalSearch/update
# modified: src/plugins/contrib/IncrementalSearch/update29
# modified: src/plugins/contrib/IncrementalSearch/update30
# modified: src/plugins/contrib/SpellChecker/hunspell/ltmain.sh
# modified: src/plugins/contrib/SpellChecker/update
# modified: src/plugins/contrib/SpellChecker/update29
# modified: src/plugins/contrib/SpellChecker/update30
# modified: src/plugins/contrib/SpellChecker/wxspellchecker/build/acrege
n.sh
# modified: src/plugins/contrib/SpellChecker/wxspellchecker/build/instal
l.sh
# modified: src/plugins/contrib/ThreadSearch/update
# modified: src/plugins/contrib/ThreadSearch/update29
# modified: src/plugins/contrib/ThreadSearch/update30
# modified: src/plugins/contrib/ToolsPlus/update
# modified: src/plugins/contrib/ToolsPlus/update29
# modified: src/plugins/contrib/ToolsPlus/update30
# modified: src/plugins/contrib/Valgrind/update
# modified: src/plugins/contrib/Valgrind/update29
# modified: src/plugins/contrib/Valgrind/update30
# modified: src/plugins/contrib/codesnippets/update
# modified: src/plugins/contrib/codesnippets/update29
# modified: src/plugins/contrib/codesnippets/update30
# modified: src/plugins/contrib/lib_finder/update
# modified: src/plugins/contrib/lib_finder/update29
# modified: src/plugins/contrib/lib_finder/update30
# modified: src/plugins/contrib/wxSmith/update
# modified: src/plugins/contrib/wxSmith/update29
# modified: src/plugins/contrib/wxSmith/update30
# modified: src/sdk/wxpropgrid/build/acregen.sh
# modified: src/sdk/wxpropgrid/build/install.sh
# modified: src/update
# modified: src/update29
# modified: src/update30
# modified: updateChangeLog.sh
# modified: update_revision.sh
#
no changes added to commit (use "git add" and/or "git commit -a")
zyh23@ZYH /f/jens-codeblocks-mirror/codeblocks.git (master)
$ ll
bash: ll: command not found
zyh23@ZYH /f/jens-codeblocks-mirror/codeblocks.git (master)
$
I don't know about the ll command.
Can you check the md5sum of the downloade archive ?
It should be ca06385f8617381f6a6ad7e05a47c2bf
Yes, md5sum is the same, so I download the correct file.
ll is an alias for ls -l.
It might probably be an issue with line-endings or the executable-flag (all files are linux shell-scripts).
Thank, it looks like the difference is, for example
bootstrap | 0
1 file changed, 0 insertions(+), 0 deletions(-)
diff --git a/bootstrap b/bootstrap
old mode 100755
new mode 100644
This looks like the executable-flag.
In .git/config you can set [core] filemode to false.
Either manually or with git config --local core.filemode false.
Maybe deleting the line completely will also work (I guess the global setting is false on windows).
core.fileMode
If false, the executable bit differences between the index and the working tree are ignored; useful on broken filesystems like FAT. See git-update-index(1).
The default is true, except git-clone(1) or git-init(1) will probe and set core.fileMode false if appropriate when the repository is created.
Ok, I will try it now.
Good news, see the log:
zyh23@ZYH /f/jens-codeblocks-mirror/codeblocks.git (master)
$ git config --list
core.symlinks=false
core.autocrlf=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/bin/curl-ca-bundle.crt
sendemail.smtpserver=/bin/msmtp.exe
diff.astextplain.textconv=astextplain
rebase.autosquash=true
user.name=asmwarrior
user.email=...
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
svn-remote.svn.url=http://svn.code.sf.net/p/codeblocks/code
svn-remote.svn.fetch=trunk:refs/remotes/trunk
svn-remote.svn.branches=branches/*:refs/remotes/*
svn-remote.svn.tags=tags/*:refs/remotes/tags/*
zyh23@ZYH /f/jens-codeblocks-mirror/codeblocks.git (master)
$ git config --local core.filemode false
zyh23@ZYH /f/jens-codeblocks-mirror/codeblocks.git (master)
$ git config --list
core.symlinks=false
core.autocrlf=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/bin/curl-ca-bundle.crt
sendemail.smtpserver=/bin/msmtp.exe
diff.astextplain.textconv=astextplain
rebase.autosquash=true
user.name=asmwarrior
user.email=...
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
svn-remote.svn.url=http://svn.code.sf.net/p/codeblocks/code
svn-remote.svn.fetch=trunk:refs/remotes/trunk
svn-remote.svn.branches=branches/*:refs/remotes/*
svn-remote.svn.tags=tags/*:refs/remotes/tags/*
zyh23@ZYH /f/jens-codeblocks-mirror/codeblocks.git (master)
$ git reset --hard remotes/trunk
HEAD is now at a8fd2cf * compiler: fix MinGW auto detection, we actually distrib
ute 'mingw32-make' (not 'make')
zyh23@ZYH /f/jens-codeblocks-mirror/codeblocks.git (master)
$ git status
# On branch master
nothing to commit, working directory clean
zyh23@ZYH /f/jens-codeblocks-mirror/codeblocks.git (master)
$
Look, it was clean working directory now.
The next step I want to do is try to see whether I can have commit to svn.
As you mirror url is “http://svn.code.sf.net/p/codeblocks/code”, is it possible to becomes "https://svn.code.sf.net/p/codeblocks/code"?
Another concern is that my working git mirror(not full svn revision mirrored), I see the url is "https://ollydbg@svn.code.sf.net/p/codeblocks/code/trunk"
So, if I need a commit access, I guess the url name is "https://<developer_nick_name@......", which means every developer has their own unique urls. As OBF said, if the git commit SHA value is calculated from(depends on) the svn url, it is hard to reuse the git mirror mirrored from different svn urls. Maybe, we can only mirror the C::B SVN protocol?
Some further information about the git commit SHA value and commit log message.
I just did a SVN url change(see: Re: Read-only Git, SVN Repo for Code::Blocks (http://forums.codeblocks.org/index.php/topic,16096.msg128151.html#msg128151)), and later I did a git svn rebase.
Now, I see the SHA value are different for the new fetched svn commit.
For example, in
http://cgit.jenslody.de/codeblocks/commit/
The latest commit is:
author biplab <biplab@2a5c6006-c6dd-42ca-98ab-0921f2732cef> 2013-12-21 14:59:38 (GMT)
committer biplab <biplab@2a5c6006-c6dd-42ca-98ab-0921f2732cef> 2013-12-21 14:59:38 (GMT)
commit 4358e1d0ed886f1581ed4f19863418c8b4d9fbfc (patch)
tree a011291b7dfc74843c79599c6a2c7a9638b11433
parent a8fd2cf9415f205012f5389fde815a867061924b (diff)
download codeblocks-master.tar.bz2
codeblocks-master.tar.xz
* Fixed: Typos.
git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9494 2a5c6006-c6dd-42ca-98ab-0921f2732cef
Now, in my local git repo, it is:
Revision: bea9e5858389b5a522d67335d62a2ad065a3bd50
Author: biplab <biplab@2a5c6006-c6dd-42ca-98ab-0921f2732cef>
Date: 2013-12-21 22:59:38
Message:
* Fixed: Typos.
git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9494 2a5c6006-c6dd-42ca-98ab-0921f2732cef
----
Modified: codeblocks.spec.in
Modified: debian/changelog
Look, the log messages(svn url), SHA-1 values are different.
The commit before "git svn rebase/fetch" are the same.
One guess: if jens' original git was mirrored from some url like: https://xxx@svn.code.sf.net/p/codeblocks/code where xxx is your SF id, then maybe, we can get the same commit SHA-1 value and log message. Since in my git config file, I have:
url = https://ollydbg@svn.code.sf.net/p/codeblocks/code
But look at the log message, it did strip the "ollydbg@" string.