IRCloggy #git 2009-04-24

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2009-04-24

haesbaert left00:00
dotsintacks left00:00
[intra]lanman joined00:01
RodP2 left00:02
quentusrex Ilari: I don't see an error anywhere... :(00:05
Ilari quentusrex: Oh, and you also need to +x the hook to enable it.00:06
quentusrex yup, did that...00:06
I have: /home/git/repositories/cgit-admin.git00:06
only cgit.conf and .git in there.00:06
I just did a git reset --hard and it didn't pull anyting... :(00:07
Ilari quentusrex: The git reset is run in post-update hook of the server repo.00:07
quentusrex sec00:07
I might have found it00:07
error: unable to create temporary sha1 filename ./objects/61: Permission denied00:08
Ilari quentusrex: Permissions problems.00:09
shf10105_ joined00:09
Ilari quentusrex: On remote side.00:09
quentusrex win!!!00:09
thanks Ilari00:09
shf10105_ hi everybody, im quite new to git, is there a good toturial for setting up a private git server?00:10
Ilari quentusrex: Basically, if you are using file:///, the receive-pack on remote side will execute with priviledges of user invoking push.00:10
quentusrex ok, now I'm seeing an issue with cgit about 'path' is not a git repo00:11
Ilari shf10105_: Here's one tutorial: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way00:11
kalle_ left00:11
kalle_ joined00:11
shf10105_ Ilari: Thanks00:11
sdiz-afksdiz00:11
shruggar left00:11
Ilari shf10105_: One thing it doesn't mention (and I have seen it cause trouble) is that filesystem contaiing the git user home directory must be mouted with execute permissions.00:13
shf10105_: Not as 'noexec'.00:13
iratikuiratik00:14
Ilari shf10105_: It doesn't need to have permissions to have devices nor SUID/SGID.00:14
quentusrex nvm, I found it.00:14
Ilari shf10105_: That's because gitosis uses hook script in one place and if partition is noexec, executing that hook will fail, resulting problems.00:15
mithro joined00:15
agenteo joined00:16
esparkman joined00:19
fujin left00:22
jackdempsey joined00:22
halfmouse left00:23
quentusrex Ilari: how do I do a test to see if something is a git repo?00:24
faithfulgeek joined00:24
quentusrex cgit keeps telling me that a folder isn't a git repository00:24
Ilari quentusrex: IIRC, it uses presence of 'HEAD' 'refs' and 'objects' inside the .git dir.00:25
quentusrex but I hmm00:25
hmm....00:25
Ilari quentusrex: Probably one can also cause that error by having wrong permissions somewhere.00:26
quentusrex but I have one working,00:26
and another one that isn't...00:26
I have one with the project.git/.git00:26
and all the HEAD, etc are in the .git00:26
but the other one has everything in the project.git/ rather than in the /.git/ folder.00:27
k0001 joined00:27
Ilari quentusrex: git status should tell wheither it can find repo there...00:27
quentusrex: That is a bare repo...00:27
quentusrex which is a bare repo?00:27
Ilari quentusrex: The one without .git directory and instead with directories like refs and objects00:28
quentusrex ok,00:28
so, can I convert a non bare repo to a bare repo?00:29
CardinalNumber joined00:30
antoranz_ left00:31
Ilari quentusrex: Conversions in both directions are possible. And note that bare repo doesn't have working tree.00:31
quentusrex basically, how do I get cgit to show the gitosis repo ?00:32
:(00:32
Ilari quentusrex: Just the repository files, in form that nothing but git or one of its reimplementations can get anything meaningful out.00:32
tchan left00:32
sakyamuni left00:33
Ilari quentusrex: No idea about configuring cgit...00:33
jfkw left00:33
offby1 So ... what's the _nice_ way to check out "the branch I last had checked out"? I _could_ do it like this, but it's kludgeaceous: git checkout $(git reflog | head -1 | awk '{print $6}')00:34
... is there a better way?00:34
Ilari offby1: 'git checkout @{-1}'? Requires quite new git...00:34
tchan joined00:35
jackdempsey left00:35
offby1 slik!00:36
er, "slick" :-)00:36
Ilari: that's fine; I live on the bleeding edge :)00:36
jackdempsey joined00:36
offby1 Ilari: you never let me down, y'know that?00:36
hmm, 'git checkout -', even.00:37
inspired by "cd -", no doubt.00:37
next -- stacks of branches ... :-)00:37
dgs__ left00:37
dgs__ joined00:38
Ilari Hmm... 1.6.3.rc0.1.gf800b... That's too old. :-)00:38
offby1 f800b00:39
too old for what?00:40
Ilari Well, 1.6.3.rc1.51.gea0b7 is already out... :-)00:40
offby1 stares blankly00:40
Ilari Look up "heatseeker".00:41
glommer left00:41
Ilari The comp slang term, not as in "heatseeker missile".00:41
jackdempsey left00:44
catalis left00:45
hax0r1337 joined00:45
KwikkSilva left00:45
bryanl left00:46
yec joined00:46
Dashkal left00:49
glommer joined00:50
javatexan joined00:51
cgardner left00:51
ProperNoun left00:52
eletuchy_ joined00:53
eletuchy_ left00:53
eletuchy_ joined00:54
eletuchy left00:54
dreiss left00:58
fynn left00:59
fynn joined01:00
seangrove joined01:00
andrewkasper left01:01
catalis joined01:02
madduck left01:03
bmalee left01:03
GyrosGeier left01:03
impulze left01:03
vmiklos left01:03
Tali left01:03
incd^ left01:03
daleglass left01:03
hegge left01:03
avtobiff left01:03
janl left01:03
xl0 left01:03
replaca left01:03
darjeeling left01:03
hgb left01:03
piroko left01:03
majoh left01:03
natlus left01:03
xkr47 left01:03
dionoea left01:03
frsk left01:03
OgMaciel left01:03
IRSeekBot left01:03
Ingmar left01:03
pcgod left01:03
maxb left01:03
mithraic left01:03
seb42 left01:03
yinkei left01:03
jjuran http://web.bilkent.edu.tr/Online/Jargon30/JARGON_H/HEATSEEK.HTML01:03
GyrosGeier joined01:04
vmiklos joined01:04
OgMaciel joined01:04
xl0 joined01:04
hegge joined01:04
Ingmar joined01:04
daleglass joined01:04
natlus joined01:04
pcgod joined01:04
maxb joined01:04
replaca joined01:04
IRSeekBot joined01:04
incd^ joined01:04
piroko joined01:04
frsk joined01:04
yinkei joined01:04
bmalee joined01:04
xkr47 joined01:04
hgb joined01:04
majoh joined01:04
mithraic joined01:04
dionoea joined01:04
Tali joined01:04
impulze joined01:04
seb42 joined01:04
darjeeling joined01:04
madduck joined01:04
avtobiff joined01:04
janl joined01:04
navik joined01:04
justatheory Ilari: I've almost got this thing.01:06
hugoxrosa joined01:08
arohner how do I generate a tarball from a git tag?01:08
justatheory Now I just need to be able to fetch remote branches from the cvs export with into the svn export without replacing the branches with the same names in the svn export.01:09
Starting to drive me crazy.01:09
loincloth left01:09
nis arohner: man git-archive ?01:09
Gitbot arohner: the git-archive manpage can be found at http://git.or.cz/man/git-archive01:09
arohner nis: yes, thanks01:10
Fissure justatheory: something like git fetch ~/cvs-import refs/remotes/*:refs/remotes/cvs/*01:11
haesbaert joined01:11
kalle_ left01:11
justatheory Fissure: Yeah, but I don't want the "cvs/" bit there.01:11
So I have the branch foo in cvs and the branch foo in svn.01:11
kalle_ joined01:11
justatheory I want to merge them into one git repo, and have the earliest commit in foo in the svn git repo to be the parent of the latest commit in the foo branch in the cvs git repo.01:12
I have to do this with master, frankly01:12
Fissure i don't think you can automate that very easily01:16
justatheory Crap.01:16
Fissure just have to manually graft them together01:16
justatheory I can, but some of the commits are missing.01:16
If i use `git fetch` to get those commits, they replace those in the existing branch.01:16
iso42 joined01:17
Fissure so fetch them into another branch01:17
like i said01:17
justatheory Grrr. Was hoping to avoid that.01:17
Fissure why? you can just delete them later01:18
fujin joined01:18
ceej joined01:19
Fissure you can try to automate it by using git for-each-ref to iterate over branches, then doing some string operations combined with rev-list|head and rev-list|tail to link the histories together01:20
hax0r1337 left01:20
devicenull_ joined01:21
mw left01:21
Fissure i.e., echo `git rev-list svn/$branch | tail -n1` `git rev-list cvs/$branch | head -n1` > .git/info/grafts01:21
and loop that over each branch01:21
mw joined01:22
spearce` left01:24
bremner_ joined01:24
halfmouse joined01:25
catalis left01:26
devicenull left01:26
hugoxrosa left01:27
WALoeIII left01:28
hugoxrosa joined01:28
haesbaert left01:28
jackdempsey joined01:30
justatheory There are only three of them, master, rev_1_6, and rev_1_8.01:33
I already have the SHA1's to write to .git/info/grafts01:33
But if I put those branches into cvs/, graft them to their children, and then delete them won't they be gone?01:34
justatheory tries that.01:34
iratik left01:34
Fissure no, though the objects will be up for garbage collection if no ref points to them01:34
justatheory okay01:35
trying01:35
Fissure so you'll need to filter-branch to solidify the grafts01:35
remember that branches are just pointers to commits01:35
justatheory okay, trying that01:36
merlin83 joined01:37
bremner_ left01:39
KwikkSilva joined01:39
gaveen left01:44
gaveen joined01:45
jackdempsey left01:45
sgrimm left01:47
esparkman left01:48
mooseish left01:50
mooseish joined01:51
justatheory Fissure++ # Worked, thanks!01:51
lois[pac] left01:52
halfmouse left01:53
poseidon left01:55
hobodave left01:56
Fissure great! enjoy using a sane version control system :)01:57
porcnick_ joined02:00
ocornu left02:00
hugoxrosa left02:01
disappearedng joined02:02
hax0r1337 joined02:02
justatheory thanks.02:02
Just a little bit more and i'll be done.02:02
scarabx joined02:03
KwikkSilva left02:03
ceej left02:05
qhoxie left02:08
KwikkSilva joined02:10
qrush_ joined02:11
porcnic__ joined02:12
Ademan left02:13
hax0r1337 left02:14
porcnick left02:16
porcnick_ left02:17
Ademan joined02:17
KwikkSilva_ joined02:18
mankind_tweezer joined02:18
agile joined02:19
KwikkSilva left02:19
Tv left02:19
sgrimm joined02:20
cytrinox_ joined02:20
[1]intripoon joined02:21
Aiatek joined02:23
sfwc joined02:23
Aiatek left02:24
qrush_ left02:24
flaguy48 joined02:27
nis left02:27
hyperair joined02:28
qrush_ joined02:28
blinton joined02:31
hiwd joined02:35
cytrinox left02:36
intripoon left02:37
[1]intripoonintripoon02:37
flaguy48 left02:37
qrush__ joined02:39
qrush left02:40
manguy joined02:42
markelikalderon left02:45
rphillips joined02:51
tjafk2 joined02:51
hax0r1337 joined02:51
baetis-fly joined02:53
qrush_ left02:54
jackdempsey joined02:54
Paf joined02:55
hiwd left02:56
aspotashev|eeepc joined03:02
arohner left03:03
nurey left03:05
aspotashev joined03:05
tjafk1 left03:07
Tv joined03:09
ajonat joined03:14
egoist joined03:15
girishr joined03:16
girishr left03:16
xyz left03:16
ben_h joined03:20
kukks left03:20
arohner joined03:21
shf10105_ left03:25
alus I get:03:25
error: Entry 'blah/foo.rb' would be overwritten by merge. Cannot merge.03:25
fatal: merging of trees 403:25
how do I fix that?03:25
hyperair left03:30
hyperair joined03:30
Fissure uh, don't have untracked files that the remote side committed?03:31
benn_d left03:32
davidad joined03:35
manguy left03:35
blinton left03:35
blinton joined03:35
kabus joined03:37
bratsche_ left03:38
bratsche_ joined03:39
alus Fissure: I don't know what you're asking. I previously git added, committed and pushed that file03:39
eno__ joined03:40
CardinalNumber left03:40
alanhaggai joined03:40
ajonat left03:42
eno left03:44
cytrinox joined03:45
mw left03:45
mw joined03:45
hax0r1337 left03:48
jmspeex joined03:48
alanhaggai left03:48
alanhaggai joined03:48
gwoo joined03:49
rphillip- joined03:50
Fissure alus: oh, right, my bad... it's tracked, but you have local changes to it03:50
so it won't let you trash your working copy by trying to merge the other side's changes03:51
octagon left03:51
arohner left03:52
rettub_ left03:52
rettub_ joined03:53
blinton left03:53
blinton joined03:53
rphillips left03:55
rphillip- left03:55
alus Fissure: I made no additional changes03:56
Fissure: I also tried deleting the local file, and it gives the same error03:56
rphillips joined03:56
cytrinox_ left03:57
Tricon joined03:59
iso42 left04:02
Fissure deleting the file may count as a change :)04:03
what does status say?04:03
mw left04:04
petercoulton_ joined04:06
intripoon left04:06
petercoulton_ left04:06
mw joined04:06
alanhaggai left04:07
Zenopus_ joined04:11
aspotashev_afk joined04:12
aspotashev left04:12
jrmuizel left04:13
e_6 i have a repo on a webserver that just gets updated via pull, and i keep getting a file is not uptodate error on pull. tried git update-index --refresh, it tells me the file needs update...what exactly does this mean?04:14
gaveen left04:14
blinton left04:14
blinton joined04:15
sdizsdiz-afk04:15
sdiz-afksdiz04:15
gaveen joined04:15
blinton left04:15
ben_h left04:15
rphillips left04:16
rphillips joined04:16
blinton joined04:17
porcnic__ left04:17
psyq joined04:17
e_6 if i remove the file it works, but its kind of annoying having to do that every time on a repo that never gets edited except via pulls04:18
davidfetter joined04:18
Fissure sounds like an autocrlf issue04:19
greyface left04:19
e_6 what's that all about?04:20
scarabx left04:20
e_6 nm04:20
jrmuizel joined04:21
e_6 thank you sir04:22
jackdempsey left04:23
e_6 left04:24
mw left04:25
dgs__ left04:26
gaveen left04:27
Zenopus left04:28
Zenopus_Zenopus04:28
jackdempsey joined04:28
intripoon joined04:29
seangrove left04:31
alus Fissure: I did a git add then a git commit and now I can pull. wee04:33
git is weird04:34
psyq left04:35
greyface joined04:35
jceb joined04:37
joelmichael joined04:40
jackdempsey left04:41
porcnick joined04:42
joelmichael left04:42
raydeo joined04:43
gaveen joined04:44
defvayne23 joined04:44
eno__eno04:44
girishr joined04:45
kabus left04:45
chrisrb joined04:46
Fissure alus: git prevents you from destroying data04:47
eletuchy_ left04:48
girishr left04:48
eventualbuddha joined04:50
girishr joined04:51
mooseish left04:51
girishr left04:51
girishr joined04:52
defvayne23 left04:54
error404notfound joined04:55
error404notfound How can i save the output of git push/clone etc commands in a custom log file?04:56
alus Fissure: there was no data destruction operation that should have been possible here. I added a file, and committed it. git should know how to do that without panicing04:56
ceej joined04:56
aisbaa joined04:56
savonarola joined04:57
ben_h joined04:57
priidu joined04:57
AkumaStreakAkumaStreak_05:00
curvature left05:00
curvature joined05:00
chrisrb left05:01
justatheory left05:02
kate21de joined05:02
wshimmy joined05:03
Ilari alus: What if the merge goes wrong?05:03
error404notfound: Shell redirections or even tee(1)?05:03
alus merge of what? there's nothing to merge05:04
I only did one thing05:04
AkumaStreak_ left05:04
Ilari alus: Pull does merge.05:04
alus: If file A would be change by merge and A has local uncommitted changes, merge will abort.05:06
alus but there were no uncommitted local changes05:07
and more importantly, there were no remote changes.05:07
Ilari alus: Some caches where out of whack? 'git status' should fix those...05:07
alus: Then the merge should quickly say it has nothing to do.05:08
mr_chapendi joined05:08
blinton left05:08
alester joined05:08
error404notfound tried git clone git@localhost:gitosis-admin | tee log.txt and the log.txt just contains: "Initialized empty Git repository in /Users/shoaibi/tmp/gitosis-admin/.git", not the progress, or stats about how manuy files were transfered05:09
mr_chapendi hey guys, i'd appreciate it if you could spare some time to answer a question for me05:09
Enselic joined05:10
wereHamster error404notfound: ... 2>&1 | tee ?05:10
baetis-fly I didn't get a response in #github, so I hope no one minds if I ask here. Do you think this is good advice for someone who is a regular contributor?05:10
http://blog.mhartl.com/2008/10/14/setting-up-your-git-repositories-for-open-source-projects-at-github/05:10
kalle_ left05:11
error404notfound wereHamster, nope, no use, even though cloning goes just smooth, log contains just one line..05:11
savonarola left05:11
Ilari error404notfound: Ah yeah, terminal detection.05:11
mr_chapendi i guess i'm a bit confused about the concept of a central repository in git - i'm aware that such a thing is kind of an artificial distinction, as git is decentralized05:12
but say i dsignate some repository as the central repository, and i push to it05:12
Ilari error404notfound: Well, screen has some form of logging (<action> H)05:12
mr_chapendi and then someone else pushed to it05:12
does it merge the two, and who makes the decisions on any conflicts?05:13
or am i just so far off base that i'm not making sense?05:13
Grahack joined05:13
Ilari mr_chapendi: It rejects push on conflict.05:13
alus I think git has problems with file permissions on windows05:13
wereHamster mr_chapendi: the second person will have to pull first, then push05:13
sitaram joined05:13
alus that's my guess for what it thought changed05:13
Ilari mr_chapendi: And if you force it, it overwrites other's changes.05:13
allagator heh05:13
jrmuizel left05:13
raydeo left05:14
Ilari mr_chapendi: Any merging happens on local end. Push never creates any new states.05:14
error404notfound i am using "script" utility05:15
mr_chapendi so, if theres a conflict, you pull the central server's state, merge it locally, making all the decisions, and then push again?05:15
WALoeIII joined05:17
kalle_ joined05:17
travisjeffery joined05:19
aisbaa left05:20
jony joined05:20
seangrove joined05:21
aisbaa joined05:21
jrmuizel joined05:24
mr_chapendi left05:24
eventualbuddha left05:24
porcnick left05:25
gretch joined05:25
ceej left05:28
giallu left05:28
fujin left05:31
johan-s left05:31
gaveen_ joined05:31
gaveen left05:31
alester left05:33
ankit9 joined05:35
Modius Git going mega-slow doing checkins - "calling pre-commit hook", commit-msg hook etc taking ages for one measly file. Okay, this is on MSYGIT; but it's usually fast for me. Anything I should look at?05:36
davidad left05:36
Modius No HD action or anything like that05:36
Enselic what kind of hooks are invoked?05:37
davidad joined05:38
mankind_tweezer left05:38
bcardarella joined05:39
egoist left05:39
cao1 left05:40
jrmuizel left05:41
wshimmy left05:41
Modius I don't know what hooks are :) Pre-commit and commit-msg05:42
Evanlec left05:42
porcnick joined05:43
solar_ant joined05:43
sitaram left05:44
sitaram joined05:45
peteinlux joined05:46
Fissure look at .git/hooks/*05:46
apparently they're doing some really expensive operations05:46
Modius Weird that they just suddenly get slow05:49
sergiodj there's always a chance that you find a "sleep 1000" there, though :-P05:49
please, disconsider the last comment... :)05:49
priidu left05:52
jceb81 joined05:53
kate21de left05:55
priidu joined05:55
priidu left05:57
priidu joined05:58
j416 joined06:00
gaveen_ left06:01
Weaselweb joined06:01
Grahack left06:02
wshimmy joined06:05
jceb left06:05
Enselic left06:06
gauge joined06:09
WALoeIII left06:09
aspotashev|eeepc left06:09
WALoeIII joined06:09
aspotashev|eeepc joined06:10
kalle_ left06:11
porcnick left06:11
kalle_ joined06:11
davidad left06:13
tubastian joined06:13
tubastian hi everyone06:13
binjured joined06:15
aspotashev_afk left06:15
aspotashev joined06:15
Grahack joined06:16
ben_h left06:16
amahi joined06:17
aspotashev left06:18
aspotashev joined06:19
tubastian i am quite new to git and have this question: i use git-svn to work on subversion repositories. my main repository is A, that i checked out via "git svn clone", nothing special about this, but there is a second repository B which I want "to import" in my A repository, e.g. A/other/B... on the one hand I want to change B in my own branch in A and commit them to A, on the other hand I want to keep the connection between A/other/B and the orig06:20
fynn left06:22
fynn joined06:22
cpg left06:23
wereHamster tubastian: you want to import B into a subdirectory of your A clone?06:23
tubastian yes06:23
the B svn repository is readonly06:23
so all changes i make should go into A06:23
wereHamster and you want to commit the result into A..06:23
tubastian yes06:24
wereHamster subtree merge comes into my mind...06:24
WALoeIII left06:24
wereHamster eg. create a git-svn clone of both svn repos, and do a subtree merge of B into the appropriate subdirectory of A06:25
Tuomas joined06:25
hyperair left06:27
BooK_ joined06:29
BooK left06:29
davidfetter left06:30
davidad joined06:32
bratsche_ left06:33
bratsche_ joined06:35
dwave joined06:37
tubastian wereHamster: thanks, i found a manual at http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html , but it fails at step 2:06:37
repositories A is checked out at ~/git/A, B in ~/git/B and i am currently in a sub-directory of a:06:37
git remote add -f 'B' ~/git/B06:37
git merge -s ours --no-commit B/master06:37
Merge with strategy ours failed.06:37
the06:37
the -v option does not give further information06:37
naeu_ joined06:38
tal67 joined06:39
aisbaa left06:39
srid joined06:40
naeu joined06:40
jfkw joined06:42
giallu joined06:44
hyperair joined06:47
voker57 joined06:49
k0001 left06:50
tubastian :/ g2g, thank you so far06:50
tubastian left06:50
chalky left06:51
stuffcorpse left06:53
stuffcorpse joined06:53
jony left06:56
naeu_ left06:57
Aides left06:59
rraasch joined07:00
davidad left07:00
altrux left07:02
davidad joined07:02
Aides joined07:03
khmarbaise joined07:03
jceb81 left07:03
petercoulton left07:03
hyperair left07:06
hyperair joined07:06
robinr left07:08
gilimanjaro joined07:10
darrob left07:11
kalle_ left07:11
galderz joined07:12
kalle_ joined07:12
Paf left07:14
stuffcorpse left07:15
tatsuyao joined07:15
stuffcorpse joined07:16
darrob joined07:16
hyperair left07:18
jony joined07:18
davidad left07:19
hyperair joined07:19
jmesnil joined07:20
davidad joined07:20
stuffcorpse left07:21
stuffcorpse joined07:21
lack_ joined07:22
priidu left07:23
thumper joined07:24
chalky joined07:28
lack left07:28
lack_lack07:28
ph^ joined07:29
drizzd_ joined07:30
srid left07:32
hgb I get this:07:33
[09:33:00][hgb@rdbuild2:~/src/dev/git (revert)]172 git svn dcommit -n07:33
Cannot dcommit with a dirty index. Commit your changes first, or stash them with `git stash'.07:33
[09:33:09][hgb@rdbuild2:~/src/dev/git (revert)]173 git status07:33
# On branch revert07:33
nothing to commit (working directory clean)07:33
Any ideas?07:33
Hmm.07:34
A 'git svn dcommit' worked...07:34
Weird.07:34
krawekmarciano_cocoman07:34
ocornu joined07:35
Grahack left07:36
johan-s joined07:36
naeu left07:37
vuf joined07:42
j416 left07:42
vuf it's getting to the point where even stash, checkout, make fix, checkout back, rebase, stash apply is getting annoying ... will that git-new-workdir thing help me, and are there some gotchas in using it?07:43
drizzd left07:46
dedmajor left07:55
Grahack joined07:56
gaveen joined07:56
dedmajor joined07:58
dwt joined07:58
plasticine joined07:59
shruggar joined08:00
travisjeffery left08:01
plasticine left08:02
kbingham joined08:02
lucsky joined08:03
naeu joined08:03
tango_ left08:04
whalesalad joined08:05
aspotashev_afk joined08:05
greyface left08:06
Paf joined08:06
vienova joined08:06
aspotashev left08:07
whalesalad Hey guys I just moved a remote svn repo to a new url. I'm using git-svn, I opened my .git/config and changed the url but none of my git-svn commands work any longer. Was there something else I needed to do?08:07
FreakGuard left08:08
g3d left08:08
wereHamster whalesalad: yep, there is. I don't know how to do that, but there was a blog post or tutorial about it. Try google08:10
kalle_ left08:11
kalle_ joined08:12
Chaser_ joined08:12
bgerber left08:13
mithro left08:13
g3d joined08:14
marciano_cocomankrwk08:17
robinr joined08:17
whalesalad Dear god git-svn is disgusting. Time to get these other developers on the git bandwagon08:17
Predominant left08:17
krwk left08:19
robinr left08:22
peteinlux left08:22
airtonix joined08:23
mapreduce left08:24
agenteo left08:24
priidu joined08:25
travisjeffery joined08:25
airtonix suppose i have three projects (a,b,c) and project-b & project-c require project-a as a dependancy. is it possible to get the git repos of project-b & project-c to include a certain branch or the master head of project-a ?08:26
like some kind of ln -s ?08:26
doener checkout submodules or subtree merges08:26
sampled joined08:26
airtonix cheers08:27
aspotashev_ joined08:29
kuadrosx left08:29
bobesponja left08:31
airtonix ok so inside ~/project-b , i do : git pull -s subtree project-a master; git add *; git commit -am "some more changes"; git push --tags origin master;08:31
cilly joined08:31
airtonix after doing all the other prep steps08:31
cedricv joined08:32
airtonix is this done at every commit on project-b?08:32
to ensure latest version of project-a ?08:32
refering from here : http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html08:33
doener that's the subtree way, and no, I'd not do that all the time. Only when it's "interesting" to get a new version of A merged in08:34
airtonix ok08:34
RodP2 joined08:35
Grahack left08:35
doener and it depends on how the two things relate and how you want the thing to work out whether you'll want submodules or subtree merges08:35
airtonix well i know that every new pull of project-a wont conflict with anything thats unique about project b or c08:36
since all unique files for b & c are seperate directories08:36
doener the subtree merge really combines the two repos. So when you clone B, you get the merged parts of A, too, automatically, as a part of B08:36
airtonix and project-a is yet its own directory08:36
bcardarella left08:36
doener but with submodules, you just have a link to A in B. You then get to have a clone of A in a subdirectory of B, as its own repo.08:37
eletuchy joined08:37
doener B just records where A is, and which commit should be checked out08:37
eletuchy left08:38
airtonix but i still need to manually pull down project-a while im within project-b if i want the new changes from project-a before commiting project-b?08:39
doener sure. If B should have its link to A updated, you need to get the new commits for A first08:40
airtonix ok08:40
travisjeffery left08:40
doener if the directory in which A is was always at the tip of some branch, that would easily lead to trouble when you need an old version of B08:40
say you had version 1.0 of A and B, and they worked together. Later you go for v2.0 of A, which is incompatible to v1.008:41
wshimmy is there a way to add patchwise an untracked file?08:41
airtonix maybe i ought to look at joining them at distribution instead?08:41
priidu left08:41
doener Then you couldn't checkout an old version of B, if A was always taken to be the latest version08:42
but as submodules are recorded to be a specific commit, checking out an old version of B also gets you an old version of A08:42
aspotashev_afk left08:43
aspotashev|eeepc left08:43
HG` joined08:44
Paf left08:44
savonarola joined08:46
aspotashev joined08:46
aspotashev|eeepc joined08:46
markelikalderon joined08:47
nickjohnson joined08:48
nickjohnson How do I revert a 'git rebase'?08:48
davidad left08:48
doener nickjohnson: "git reflog show <your_branch>", look for the pre-rebase entry and reset your branch back to it08:49
nickjohnson thanks!08:50
bobmcw joined08:51
bobmcw_ left08:51
eletuchy joined08:52
tal67 left08:53
tal67 joined08:55
whalesalad left08:58
fridim_ joined08:58
nickjohnson left08:58
aspotashev_ left08:59
offby1` joined09:01
doener wshimmy: you mean "git add -p" on an untracked file, picking only parts of it to be added?09:02
wshimmy doener: yep09:02
doener wshimmy: "git add -N <file>", then you can use "git add -p" (though only the "e"dit thing will make sense) or "git gui" to stage parts of it09:05
priidu joined09:06
wshimmy doener: perfect, thank you (again!)09:07
i didn't know -N existed...its right in the man page, sorry :-/09:08
sdizsdiz-afk09:08
doener well, it's not quite obvious that you need it. I only found that solution because I could make some sense out of the "no changes" message from "git add -p" and prior knowledge about -N09:10
travisjeffery joined09:10
doener one could argue that "git add -p" should automatically do that add -N... up for a patch? :-)09:11
kalle_ left09:12
hyperair left09:13
wshimmy doener: sure thing, but now that i can commit properly i need to finish something else this morning first :P09:14
doener heh :-)09:14
cilly left09:14
cilly joined09:15
kalle_ joined09:17
RodP2 left09:23
AMorozov joined09:23
AMorozov Hi!09:24
Is it possible to setup a shared git repo so that pushed commits would automatically be rebased if it's possible?09:25
tal67 left09:27
Bonaparte joined09:29
sitaram not likely09:29
AMorozov consider the following workflow: Joe and Jane work on completely different tasks (subdirectories) in their copies of a single repo. When Joe decides to push his changes, he can't do it w/o previous previous/rebasing because Jane pushed her changes before. Is it possible to setup central repository (hooks or whatever) to perform server-side rebasing at least in certain cases?09:29
Bonaparte Is it possible to use svn:externals with git?09:29
AMorozov Bonaparte: no.09:30
You may use git submodules though.09:30
sitaram AMorozov: a rebase is the same as merge in the sense of possibly having conflicts, so it cannot be done on the remote side09:30
AMorozov sitaram: yes, I understand this.09:30
sitaram: but I'd like to handle certain cases where I know exactly that conflicts are simply impossible.09:31
thumper left09:31
AMorozov w/o any "human" interaction.09:31
sitaram I'm not very familiar with the various hooks but you may be able to trick one of them...09:32
aspotashev left09:32
Bonaparte AMorozov, got a link to a tutor that describes how to use an external subversion repo with git?09:32
SRabbelier joined09:32
savonarola left09:34
AMorozov Bonaparte: also you may check a Google Code project called `repo`, if I remember correctly, a script wrapper over plain git. It implements semantics similar to svn:externals (i.e. no binding to an exact version of a software by default).09:34
porcnick joined09:34
AMorozov Bonaparte: look at this http://git.or.cz/gitwiki/GitSubmoduleTutorial09:35
petercoulton joined09:35
aspotashev joined09:36
Bonaparte AMorozov, thanks. But it is going over my head at the moment09:36
I will search for a simpler tutorials09:36
amahicpg09:36
Bonaparte So, submodule is the way to go to manage external dependencies?09:36
gilimanjaro_ joined09:37
AMorozov Bonaparte: the basic idea of git submodules is pretty simple :) In fact, git-submodules itself is just a shell script, I would call it a proof of concept :)09:37
Bonaparte Nice :)09:37
aziz joined09:38
AMorozov Internally git-managed filesystem trees can have a thing called "GitLink", similar to well-known unix symlinks, but instead of keeping a path to a target file, a gitlink keeps a SHA1 of an external git repository.09:39
Bonaparte Does it natively interface with svn repos?09:40
AMorozov Bonaparte: no, certainly no.09:41
thumper joined09:41
AMorozov Bonaparte: you need to convert an SVN repo to a git repo (using git svn) and then link git repos using git submodules.09:41
Bonaparte I get the idea now09:42
solar_ant left09:42
tango_ joined09:42
AMorozov Just remember that gitlinks, the base of git submodules, link to an exact commit in external repo, so it differs from svn:external where you usually link to a branch, rather than a single commit.09:43
vuf left09:44
AMorozov If you need the latter semantic you may check Google repo mentioned above.09:44
fujin joined09:44
mpoullet|work joined09:45
mpoullet|work good morning09:45
how to add a bunch of untracked files all at a time?09:46
solar_ant joined09:46
fujin_ joined09:46
Bonaparte I am okay with a particular svn commit09:46
doener for example, "git add ." would add all untracked files in the current directory and all subdirectories09:46
mpoullet|work: whether that matches the bunch of files that you want to add is a different question ;-)09:47
mpoullet|work doener: thanks, exactly what I wanted!09:47
gilimanjaro left09:51
jrydberg joined09:52
mpoullet|work left09:55
neoeinstein_ joined09:57
AMorozov left09:57
egoist joined10:00
fujin left10:02
sea-gull joined10:04
tal67 joined10:05
girishr left10:09
aeruder left10:09
literal_ joined10:10
markoa joined10:13
aspotashev left10:14
neoeinstein left10:15
markelikalderon left10:17
parasti joined10:21
Flathead left10:23
cilly left10:24
ocornu left10:25
aeruder joined10:26
robtaylor joined10:26
jrockway joined10:27
girishr joined10:28
priidu left10:31
bryanl joined10:32
porcnick left10:33
priidu joined10:33
[1]intripoon joined10:35
sdiz-afksdiz10:35
priidu left10:35
egoist left10:36
priidu joined10:36
g3d_ joined10:38
g3d left10:38
priidu left10:39
sea-gull left10:39
Predominant joined10:39
bgerber joined10:39
bryanl left10:39
priidu joined10:40
sea-gull joined10:41
ceyusa joined10:45
Kimmie joined10:48
alanhaggai joined10:50
fynn left10:51
tango_ left10:51
intripoon left10:52
[1]intripoonintripoon10:52
travisjeffery left10:54
zpoley left10:55
markoa left10:56
tango_ joined10:57
andreaja I'm using git svn and due to a snafu one of the SVN revisions came down wrong, is there any way to force git to redownload some revisions?10:58
psankar joined10:58
botanicus joined10:59
psankar left11:00
aspotashev|eeepc left11:00
bryanl joined11:00
solar_ant left11:02
kadoban joined11:02
samjam left11:02
iListenU joined11:03
bratsche__ joined11:03
solar_ant joined11:03
samjam joined11:03
bratsche_ left11:03
tatsuyao_ joined11:05
samjam left11:05
gretch left11:05
tatsuyao left11:05
gilimanjaro_ left11:05
iListenU Where can be problem? here's screen: http://parduoduv.puslapiai.lt/ (in top)? What i need to do to solve it??11:06
Where can be problem? here's screen: http://parduoduv.puslapiai.lt/ (in top)? What i need to do to solve it??11:06
iListenU left11:06
psankar joined11:06
psankar left11:06
faithfulgeek left11:08
qrush__ left11:08
aspotashev joined11:10
kalle_ left11:11
kalle_ joined11:12
botanicus_ joined11:13
ehamberg joined11:14
kadoban left11:14
cpgcpg|away11:15
ehamberg is there a way to mark a file as "NEVER commit changes to this file?". i often do stupid things for testing, and want to have a more reliable guarantee for those files to be committed than me being awake. :)11:15
Weiss ehamberg: .gitignore? (note that your .gitignore files don't have to be committed themselves (afaik))11:18
stianhj left11:19
parasti can't ignore a tracked file11:19
Weiss hmm, ok11:19
kadoban joined11:19
dohzya I think you must put a test in your hooks11:20
sitaram ehamberg: commit when asleep is retractable, as long as you don't *push* while asleep :)11:20
ehamberg dohzya: yeah, i guess that would work.11:21
sitaram: hehe, good point.11:22
cilly joined11:22
Zaba and no, you need to commit the .gitignore itself11:22
KwikkSilva_ left11:24
Weiss blah, ok11:24
Weiss shuts up :)11:24
ehamberg .git/info/exclude would work if one should choose to go with the "ignore" approach, i guess11:25
sitaram Zaba: you don't need to commit the .gitignore11:25
Yuuhi joined11:25
sitaram it won't propagate of course but locally, it'll work11:25
corni joined11:25
dohzya depending : you want to prevents YOUR mistakes (not commited .gitignore / info/exclude / local hook), or ANY CHANGES (commited .gitignore / hook on public repo) ?11:27
merlin83 left11:29
botanicus left11:30
dohzya must a freeze feature could be nice I think :)11:30
s/must/but/11:30
aspotashev_afk joined11:30
aspotashev left11:31
faithfulgeek joined11:31
ehamberg i want to prevent my mistakes to be committed locally and ultimally pushed.11:32
"git freeze login.py" would be nice :)11:32
dohzya so a big warning should work and be painless :)11:33
alus git says "error: path 'db/schema.rb' is unmerged"11:33
dohzya (because I guess git-freeze should be *really* hard to design...)11:33
alus but I deleted that file. I want the one from the remote repo11:33
how do I check it out?11:33
haesbaert joined11:34
dohzya git checkout {repo}/{remote branch} -- {file}11:35
alus that says "error: path 'db/schema.rb' is unmerged"11:35
oh, with the origin/master it works11:36
I thought that was default11:36
solar_ant_ joined11:36
ankit9 left11:36
alus ok, now git pull says "error: Entry 'db/schema.rb' would be overwritten by merge. Cannot merge."11:36
I just want to pull ;_;11:36
there are clearly no local changes - I just got a fresh copy11:37
dohzya did you commit after deleting the file ?11:37
alus no11:37
git status says "modified: db/schema.rb"11:37
dohzya git reset --hard <<-- you will loose *all* local changes11:37
alus git diff says nothing11:38
so11:38
that's ok with me, since there are no local changes11:38
why is git so confused11:38
rashman joined11:38
dohzya because it is fixable :)11:38
alus ok, now git pull says "CONFLICT (content): Merge conflict in db/schema.rb"11:39
I "resolved" the "conflict" in the file. now what?11:39
dohzya git commit11:39
alus "db/schema.rb: needs merge"11:39
dohzya did you resolved the conflict by hand or using git tools ?11:40
alus by hand11:40
dohzya so it doesn't know it's resolved :)11:40
alus ok, where is git resolve? ;)11:40
dohzya I'm really noob with all merge features, so I always use git mergetool11:41
sampled left11:41
solar_ant left11:41
alus "No known merge resolution program available."11:41
dohzya I'm sure there is a way to say "it's resolved", but I don't know it11:41
oO11:41
alus windows11:41
dohzya -t {the name of your tool}11:42
wshimmy you need to remove the conflicts by hand if you aren't using a mergetool11:42
dohzya wshimmy: how to say "ok it's resolved" ?11:42
alus -t does not understand paths?11:43
priidu left11:43
alus it doesn't understand the command, either11:43
rashman00 joined11:43
wshimmy ach, sorry, not scrolled all the way down :P11:43
rraasch left11:43
rashman left11:43
wshimmy dohzya: once you resolve it, just commit?11:43
rashman00 left11:43
alus commit says "fatal: cannot do a partial commit during a merge."11:43
dohzya I think you must to tell git that it's resolved11:43
but I don't know how11:43
rraasch joined11:44
alus uh, I just did git commit -a11:44
that committed something11:44
now I can pull again. woo!11:44
dohzya oO11:44
alus it says "Merge branch 'master' of [email@hidden.address]11:45
I have no idea what that means. I'm not merging any branches11:45
dohzya pull = fetch + merge11:45
g3d joined11:45
boto joined11:45
wshimmy dohzya, alus: you need to add it first and then commit it, just like any other commit11:45
dohzya haha ok, a simple git add11:46
g3d_ left11:46
alus ok so every commit is a merge then?11:46
the file was already added, long ago11:46
wshimmy thats why commit -a "worked" - but if you had local changes you didn't want committed in your working dir, they were just committed11:46
alus there were no local changes11:46
wshimmy alus: then you're fine11:46
alus except the merge resolution11:46
er11:46
conflict resolution11:46
wshimmy alus: but you know you need to add the file before each commit11:46
alus that doesn't make sense to me11:47
don't you only need to add the file once?11:47
wshimmy alus: once you've added it once, its tracked by git11:47
alus it was added ages ago11:47
wshimmy alus: but every time you change it, you need to add it to the index so that its part of the next commit11:47
alus what11:47
wshimmy alus: unless you only commit by using git commit -a11:47
alus sometimes I commit like this: git commit file1 file2 -m "blah"11:47
that always works, except in this case11:48
wshimmy alus: thats equivalent to git add file1 file2 && git commit -m "blah"11:48
d0k joined11:48
alus except in this case.11:48
priidu joined11:49
alus git commit db/schema.rb said "fatal: cannot do a partial commit during a merge."11:49
qrush joined11:49
bryanl left11:49
wshimmy what was part of your original commit? more than just db/schema.rb?11:49
alus I don't understand what you mean by original commit11:49
wshimmy alus: your attempted merge commit11:50
alus I had committed lots of things. then I got internet access, so I did git pull. then I got a conflict in db/schema.rb11:50
cilly left11:50
wshimmy alus: okay. that's because git pull == git fetch && git merge11:50
dohzya alus : if you just want to see where the remote is, just do a fetch11:51
faithfulgeek left11:51
alus I wanted to push, but I couldn't push until I pulled11:51
j416 joined11:51
dohzya :)11:52
wshimmy alus: so you needed to merge your local branch with the remote branch. in your case it was not a fast-forward, so git needs to make an additional 'merge' commit with both commits (tips of the local and remote branches) as parents11:52
gilimanjaro joined11:52
wshimmy alus: you couldn't push because your history didn't match that of the remote11:53
alus sure11:53
so what's confusing to me is what happened after I resolved the conflict11:53
by hand11:53
everything up to that point makes sense, and is what I wanted11:53
wshimmy alus: then you needed to manually make the 'merge' commit that git was trying to do when you used git pull11:54
alus I see.11:54
jony left11:56
hdoria joined11:58
dohzya just to avoid possible problems : put a "--" before putting name in your command lines ;)11:59
git commit -m "truc" -- file1 file212:00
sunblush left12:03
hdoria i am trying to import a patch sent on mail body. i save the content on a text file and used "git am -s saved-email" but i am getting this error: Patch does not have a valid e-mail address. i am sure it does. any tips?12:03
wshimmy hdoria: because git am acts on a mbox/maildir12:05
hdoria: try git apply for a single patch12:05
hdoria i want to keep the original mail (from the person that sent the patch)12:05
is it possible?12:06
faithfulgeek joined12:06
wshimmy hdoria: neither git apply nor git am will modify your mail at all AFAIK12:06
g3d left12:06
g3d_ joined12:07
cilly joined12:07
literal_literal12:08
appiappi joined12:10
hummingkid left12:10
appiappi left12:10
appiappi joined12:11
kalle_ left12:11
appiappi hi, i'm trying to build a static git binary12:12
anybody have experience with it12:12
i'd like to upload this binary via ftp to a virtual host and execute it with php to ease the deployment of updates12:12
teuf :wi n1712:12
appiappi left12:13
appiappi joined12:14
appiappi left12:15
kalle_ joined12:17
j416 left12:20
LotR left12:22
dedmajor left12:23
dedmajor joined12:24
lorandi joined12:24
gitte joined12:24
Bonaparte left12:25
j416 joined12:25
bcardarella joined12:26
haesbaert left12:26
juanjoc joined12:26
bryanl joined12:29
sikanda joined12:31
priidu left12:31
krh_ joined12:33
jackdempsey joined12:34
LotR joined12:35
gitte_ joined12:35
gitte left12:35
gitte_gitte12:36
voker57_ joined12:36
faithfulgeek left12:36
jackdempsey left12:37
cilly left12:37
daKmoR joined12:37
qrush left12:38
daKmoR howto create a pach file for unstaged/uncommited changes?12:38
Ilari daKmoR: 'git diff' with suitable switches?12:38
javatexan left12:39
Ilari daKmoR: But you should probably commit and creat patch out of the commit.12:39
daKmoR: After all, this isn't SVN.12:39
daKmoR ok...12:39
thx12:39
Ilari daKmoR: Also, for keeping uncommitted changes, there's 'git stash'.12:39
RaySl joined12:40
Grum mmmm why would my git branch -a on one box list: remotes/origin/XXX and on the other origin/XXX (without the remote/) -- config seems to be identical enough12:40
and the versions only differ from 1.6.2.1 on the 'remotes/' and 1.6.2.3 on the other o.O12:41
Ilari Grum: Does it list 'heads/origin/XXX' as well?12:41
bcardarella left12:41
Grum remotes/origin/HEAD -> origin/master12:41
Ilari Grum: Is there 'origin/HEAD' as well?12:41
Grum and * master and remotes/origin/master it lists12:42
not that it explicitly lists Ilari12:42
Ilari Grum: I just guessed it would insert that prefix in order to refer to correct ref in case two refs with the same shorthand name existed...12:43
Grum i dont understand it, both are fresh clones o.O12:43
error404notfound left12:44
Grum oh Ilari, on the one which looks ok, it does have origin/HEAD next to origin/master12:45
dohzya refs/remotes/origin <=> remotes/origin <=> origin12:46
as refs/heads/master <=> heads/master <=> master12:46
Grum yes but why do i get 2 different outputs?12:47
it cant just be the 1.6.2.1 vs 1.6.2.3 version? O.o12:47
FreakGuard joined12:47
dohzya it can if you have a branch named origin/XXX12:47
Ilari Grum: MD5sum the repo files from both repositories and compare the lists?12:48
mfilipe joined12:48
Grum dohzya: both are completely fresh clones12:48
leanucci joined12:48
Grum from the same machine, just on another machine o.O12:48
dohzya humm.... 1 or 2 repo ?12:49
Grum i have a repo somewhere; i clone it to two different machines12:49
and for some reason the output of 'git branch -a' is different on each of those machines12:50
dohzya is it possible the original repo changed between your 2 clones ?12:50
Grum no12:51
100% impossible12:51
faithfulgeek joined12:51
seangrove left12:51
hiwd joined12:52
voker57 left12:52
daKmoR left12:52
dohzya so the 2 repo are clean, have the same .git/config, and are up-to-date.... hum.... interesting...12:52
faithfulgeek left12:53
Grum well i have some ~/.gitconfig differences12:53
but nothing that could remotely influence it afaik12:53
i'll move it out of the way to make sure12:53
faithfulgeek joined12:54
R_Dday joined12:55
[intra]lanman left12:55
R_Dday hello12:55
dohzya just to make sure : is there something wierd with "git branch -v" ?12:55
scarabx joined12:55
R_Dday I am doing this12:56
ERROR:gitosis.serve.main:Need SSH_ORIGINAL_COMMAND in environment.12:56
sorry12:56
but this12:56
git clone [email@hidden.address]12:56
cemerick joined12:56
jast try leaving out the "repositories/"12:56
corni left12:57
R_Dday and I get this error12:57
ERROR:gitosis.serve.main:Repository read access denied12:57
fatal: The remote end hung up unexpectedly12:57
I am on Ubuntu ...do you know why ?12:58
dedmajor left12:58
Ilari R_Dday: You don't have read permission to that repository.12:58
jast 145654 < jast> try leaving out the "repositories/"12:58
R_Dday but its been set up already12:58
I have givven my pubblic key12:58
Grum dohzya / Ilari: http://git.pastebin.com/m2fc6d2ec12:59
branch -v gives 100% identical output12:59
cmarcelo joined12:59
qrush joined12:59
Grum R_Dday: have you given yourself read or write access to that repo?12:59
R_Dday How do I do that ?13:00
faithfulgeek left13:00
R_Dday @Grum13:00
Ilari R_Dday: Edit the gitosis.conf, commit changes and push.13:00
trmanco joined13:00
Grum checkout the gitosis-admin repo, edit gitosis.conf; commit; push13:00
girishr left13:00
R_Dday under which folder @Grum13:01
Grum R_Dday: you wouldnt have to ask that if you did a clone of the gitosis-admin repo :)13:01
jast seriously. if you use the repositories/ prefix in the clone URL it CAN'T WORK.13:02
dedmajor joined13:02
Grum jast: lies13:02
dohzya jast : why ?13:02
jast because I just tested it13:02
Grum you can have a repositories folder in your repositories dir :)13:02
dohzya jast: it's works for me13:02
jast perhaps newer gitosis versions check for this and fix it transparently13:03
dohzya mmmmh13:03
jast I get this: http://git.pastebin.com/d192db44813:03
dohzya I said nothing (I don't use gitosis)13:03
Grum the problem is really simply, E_NO_READ_ACCESS (as said in the original error: ERROR:gitosis.serve.main:Repository read access denied)13:03
R_Dday Well does the permission need to be set on my end ...or on the remote git server ? @Grum13:03
jast R_Dday: remote server. also, try removing the "repositories/" from the URL you use in clone.13:04
Grum R_Dday: who setup your gitosis? and omg you must twitter a lot to write @xxx the whole time :D13:04
jast: that will not solve anything13:04
it finds the repo and decides you have no access; that is the error13:04
jast Grum: please read my paste13:04
dohzya Grum: maybe your git config --global or --system is not the same13:04
g3d joined13:04
g3d_ left13:05
jast notice how it says "read access denied" the first time and doesn't the second time13:05
Grum you are right; but that is strange though13:05
wshimmy Grum, R_Dday: gitosis does not give you access if you do not go through gitosis to get to the repo13:05
jast I guess it's a security thing13:05
Grum guess so13:05
catalis joined13:05
jast this way you can't get gitosis to tell you which repos exist and which don't13:05
Grum so if you'd have ~gitosisuser/repositories/repositories/repo.git you could do it :D13:05
jast probably.13:06
Grum wshimmy: if you have setup gitosis you do not have a choice but going through it13:06
jast unless you have a broken authorized_keys setup. we had that lots of times. in this case the gitosis setup seems to be fine, though.13:06
wshimmy Grum: that's my point. you cannot use the absolute path to the repository (which does not have the proper permissions set)13:07
Grum you can use subdirectories wshimmy13:07
jast wshimmy: it always goes through gitosis, no matter the path. problem is that gitosis auto-prepends the path to the repos, so the full result path is simply invalid13:07
wshimmy Grum: yes, from the gitosis root13:07
hdoria left13:07
Grum no, from ~/repositories/*13:07
wshimmy Grum: sorry, bad phrasing. ~/repositories is what I was calling the gitosis root13:08
Grum kk =D13:08
j416 left13:08
Grum R_Dday: does: git clone [email@hidden.address] work?13:08
markelikalderon joined13:08
R_Dday Grum: yes thax13:09
Grum thank jast ;)13:09
R_Dday I am having difficultie understunding the git concept13:09
I am beginner do you know any info on basics13:10
kukks joined13:10
jrmuizel joined13:11
mw___ joined13:11
kalle_ left13:11
LiamH joined13:12
hiwd left13:12
faithfulgeek joined13:13
kalle_ joined13:13
Sho_ joined13:13
Ymir joined13:15
Ymir left13:15
kbingham left13:15
priidu joined13:17
solar_ant_ left13:18
khmarbaise left13:18
esparkman joined13:20
g3d left13:20
Ryback_ joined13:20
bcardarella joined13:24
khmarbaise joined13:24
jackdempsey joined13:25
davidad joined13:28
iratik joined13:29
solar_ant joined13:32
jackdempsey left13:32
baetis-fly left13:33
spearce joined13:36
krh left13:37
spearce left13:37
spearce joined13:37
arohner joined13:37
ceyusa left13:40
johan-s left13:41
khear joined13:41
fujin_ left13:42
helo joined13:42
fujin joined13:42
helo is this document up to date for setting up a get repo for http access: http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt13:42
the dav part seems to not be working13:43
dodo_the_last joined13:43
Ilari helo: DAV push is best avoided if possible. The recomended way to push is via SSH.13:44
mattions joined13:45
helo hmmm13:45
so i'll have to give the people who push to the repo SSH accounts? :/13:45
Ilari helo: Or install gitosis.13:46
xl0 helo: You can give them accounts with git-shell as the shell. They won't be able to do anything besides git operations.13:47
dohzya why not using the git protocol ?13:47
xl0 dohzya: Push over git?13:47
dohzya yes13:47
dreamcat4 joined13:47
xl0 Never seem anyone use it. How does it work?13:48
How does it authorize the user?13:48
Ilari xl0: It doesn't.13:48
fujin doesn't :P13:48
dohzya ok :)13:48
fujin that's kinda the idea of git over ssh :D13:48
xl0 Then it's useless.13:48
ehamberg left13:48
azumanga joined13:49
hpoydar joined13:49
Ilari xl0: Well, if you hate your users, you can do all kinds of trickery with hooks (push over git:// runs normal push hooks on remote side):13:49
scarabx left13:49
sunblush joined13:49
xl0 Ilari: You need not only hate the users, but also hate yourself, setting it up and maintaining.13:49
solar_ant left13:50
Ilari xl0: Maintiaing such system (if done properly) is probably on same order of difficulty as maintaining gitosis (if the initial setup is good). Its however extremely nasty to clients...13:51
dohzya how works github ?13:52
fujin ssh13:52
dreamcat4 hi13:52
when i do "git-checkout origin/branch file1 file2 file3"13:52
it pulls in all of the files of the branch called "branch"13:53
fujin -- file1 file2 file313:53
dreamcat4 thanks ill try that now13:53
agile left13:53
azumanga I have a big git repository which contains multiple projects. In retrospect this was a mistake! Is there any way to split out one directory (with history) into a separate repository?13:53
Grum dreamcat4: you are using a *really* old git if you still use git-checkout (mind the dash!)13:53
azumanga: yes look into man git-filter-branch with subdirfilter13:54
Gitbot azumanga: the git-filter-branch manpage can be found at http://git.or.cz/man/git-filter-branch13:54
dreamcat4 @fujin thank you that works perfectly13:54
fujin np13:54
dreamcat4 @Grum what alternative command would i use instead ?13:55
Grum just git checkout without the - :)13:55
dreamcat4 (should i use?)13:55
Grum if that doesnt work, you have a way to old version of git (like 1.4 orso?)13:55
dreamcat4 i have macports git latest which supports both command syntax13:56
km2 joined13:56
dreamcat4 @Grum if you hyphenate the command, then its fairly trivial to "man git-last-command"13:56
Grum you should use the 'without dash' -- the files with a dash shouldnt be in your path :)13:56
dreamcat4 huh ??13:56
Grum yes, or just git command --help or git help command :)13:56
(both alternatives give you the manpage)13:57
justatheory joined13:57
dreamcat4 @Grum well thats fine but i prefer the old way ;)13:57
Grum dreamcat4: it will break in the future so you better adjust while you can =D13:58
dreamcat4 @Grum oh right13:58
Grum the libexec/git-core directory shouldn't be in the path13:58
DavidKlein joined13:58
Grum only git (and there are some exceptions that are also in your path for backwards compat)13:58
azumanga Grum: Thanks, reading13:58
alester joined13:59
dreamcat4 @Grum this is actually very interesting to me because i'm about to write a commandline tool which mimics the git syntax13:59
gitte left13:59
Grum the exceptions are (on my box) git-cvsserver git-receive-pack git-shell git-upload-archive git-upload-pack14:00
tatsuyao_ left14:00
dreamcat4 @Grum i was going to support "gitnest command" initially, then both later14:00
netoman joined14:00
dreamcat4 @Grum i was not going to go near those exception command14:01
@Grum but thanks for looking14:01
azumanga left14:01
Grum you can make your own 'git command' by putting a git-command in the libexec/git-core folder :)14:01
Ilari Those "exceptions" are all, except for git-shell, subprotocol servers. Git-shell is there because it can't be invoked properly otherwise.14:02
Grum yup14:02
schambers joined14:03
tatsuyao joined14:03
dreamcat4 @Grum i guess optionally create a symlink to libexec/git-core, if its a unique command name14:03
kevwil joined14:04
gdelfino left14:04
bratsche__ left14:04
dreamcat4 @Grum although in my implementation its "gitnest add" "gitnest update" etc14:04
dohzya I think I would better to create a alias than a symlink14:04
bratsche__ joined14:04
Grum yup14:04
dreamcat4 @Grum if only there was a sensible way to 'install' aliases in bash14:05
in a cross-platform compatible way14:06
Grum depends how cross platform14:06
schambers left14:06
Grum windows? :D14:06
dreamcat4 haha14:06
Grum but dohzya was talking about git config aliases14:07
dohzya mmmmh14:07
no :p14:07
dreamcat4 do you mean cygwin of the microsoft shell tools14:07
Grum not?14:07
SLACK!14:07
man git-config14:07
Gitbot Grum: the git-config manpage can be found at http://git.or.cz/man/git-config14:07
dreamcat4 oh14:07
sikanda left14:07
dohzya no no14:07
alias can't be dashed14:07
Grum 'be dashed' ?14:07
dohzya hum..... I think I'm lost :)14:08
ckm joined14:08
dreamcat4 alias.*14:08
Command aliases for the git(1) command wrapper - e.g. after14:08
defining "alias.last = cat-file commit HEAD", the invocation "git14:08
confusion and troubles with script usage, aliases that hide14:08
If the alias expansion is prefixed with an exclamation point, it14:08
"alias.new = !gitk --all --not ORIG_HEAD", the invocation "git new"14:08
lorandi left14:08
lorandi joined14:09
Kimmie left14:09
cilly joined14:10
ckm left14:10
dohzya I thought you wanted to create a dashed version of git commands :p14:10
dreamcat4 @dohzya if you mean git-dash-command they dont need to be anymore as dashed will go away14:10
Grum actually it should already be away14:11
dohzya yes but I thought you want to create a dashed version, because you prefer it14:11
(that is a very respectable reason)14:11
kalle_ left14:11
Grum bad form ;)14:12
kalle_ joined14:12
dreamcat4 @dohzya yes i was interested, but i should made my git addon it follow the future git convention as pointed to by @Grum14:12
lorandi left14:12
dohzya yes14:12
dreamcat4 (should follow)14:12
dohzya but you still can create bash alias for dasher them :p (alias git-add='git add' for instance)14:13
dreamcat4 @Grum i have macports git14:13
git-core @1.6.2.4 devel/git-core14:13
it seems to have the dashes still14:13
Grum if you do: git-[tab] you get a giant list?14:13
+ic14:13
dreamcat4 yes14:13
jackdempsey joined14:13
Grum and in your $PATH there is nothing resembling git-core? :)14:14
dreamcat4 oh yeah14:14
:/Users/id/.gem/ruby/1.8/bin:/opt/local/libexec/git-core:/Users/id/Library/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin14:14
dohzya dreamcat4: macport install in /usr/local/bin, maybe you have yet an installation in /usr/bin14:14
Grum you added that manually ;)14:14
remove it =D14:14
sikanda joined14:14
dreamcat4 its there, maybe macports added it? i dont remember doing so14:15
Grum could be, depending on how long you use git hehe14:15
dreamcat4 hey i don't want to though !14:15
Grum why not?14:15
dreamcat4 dashes a fun, i like them :)14:15
arohner left14:15
Grum it will break if the structure of git changes14:15
dreamcat4 i mean, just for my personal command-line fun14:15
loincloth joined14:15
Grum you can still do all the things without dashes?14:16
dreamcat4 i know im lazy14:16
Grum if you do: git xxx, it will just find git-xxx in libexec/git-core and execute it :D14:16
you know generally people find typing spaces easier than dashes ;)14:16
hummingkid joined14:16
Grum (and again -- it will break in the future)14:16
dreamcat4 well i won't promote my misbehaviour if you say nothing either14:17
lets keep it our little secret14:17
;)14:17
Grum i dont care hehe, you will have to rewrite all of your scripts and cant work with git on a box with a sane setup ;D14:17
dreamcat4 (laughs)14:17
yep14:18
(more laughing)14:18
have to go now14:18
bye14:18
dreamcat4 left14:18
bratsche__bratsche14:19
resmo left14:20
cydork joined14:21
tim_jenssen left14:21
resmo joined14:21
altrux joined14:21
schambers joined14:23
schambers how can i push changes to ALL git repositories?14:23
arohner joined14:23
doener I don't want your stuff in my repo!14:23
arohner left14:23
doener :-p14:23
schambers heh14:23
lorandi joined14:24
dohzya for i in $(git remote) ; do git push ; done14:24
?14:24
doener so you'll have to tell us at least what "ALL" means14:24
schambers i have 2 remote repositories defined14:24
in my config for a local repos14:24
ones at unfuddle, another at heroku14:24
i want to do a git push to both at the same time14:25
is that possible?14:25
ia left14:25
dohzya maybe "git remote | xargs git push" (I don't master the xargs command :/)14:25
meyering left14:26
schambers so it would probably just be easier to push one at a time?14:26
dohzya yes14:26
PerlJam dohzya: that looks find to me.14:26
er, fine14:26
schambers ty14:26
tim_jenssen joined14:26
dohzya schambers: the good news is that it's easily aliasable14:26
schambers hmm?14:27
ia joined14:27
dohzya git config --global alias.push-all "!git remote | xargs git push"14:27
so you will just need to use your new fresh git push-all command14:28
wmoxam joined14:28
schambers ah14:28
how can i make it so it pushes to master by defualt?14:28
kuadrosx joined14:28
schambers ie: git push unfuddle14:28
actually does git push unfuddle master14:28
juanjoc left14:29
dohzya I think "for i in $(git remote) ; do git push $i master; done"14:29
jrmuizel left14:29
doener or set remote.<name>.push to "master"14:30
dohzya maybe create a function which test if there is a refspec given, and put master if not14:30
hmmm.... too easy...14:30
meyering joined14:30
mithro joined14:30
schambers doener: where is that set?14:30
in config?14:30
aspotashev_afk left14:31
doener yep14:31
jrmuizel joined14:31
doener e.g. "git config remote.origin.push master"14:31
hyperair joined14:31
doener the default is ":", which updates all branches that exist locally and in the remote repo14:31
PerlPilot joined14:33
aziz left14:34
bdiego joined14:34
RaySl_ joined14:34
agile joined14:35
hyperair left14:37
hyperair joined14:38
kevwil left14:38
bobmcw left14:38
RaySl__ joined14:40
Strogg left14:40
RaySl left14:40
Strogg joined14:41
sikanda left14:42
cilly left14:44
jrmuizel left14:45
faithfulgeek left14:45
chris2 joined14:46
hyperair left14:46
hyperair joined14:47
soul9 hello all14:48
benn_d joined14:48
soul9 does anyone know, if i do a cherry picking of commits from one branch to an other, and maybe a patch is already half-applied, but the merge detects it correctly and applies the remaining part of the patch (commit), is the commitid still left unchanged?14:49
doener soul9: the sha1? That is _never_ unchanged from the commit you cherry-pick14:50
disappearedng left14:50
doener (unless you manage to cause a sha-1 collision)14:50
soul9 ok14:50
heheh14:50
sikanda joined14:52
Ingmar left14:52
doener for the commit object hash, the changes don't matter at all, only the end result, as the commit references a tree, which in turn references blobs and other trees14:52
all diff stuff is generated on the fly14:52
Ingmar joined14:52
doener and for the cherry-pick stuff, besides other things, at least the parent commit will also be different, thus the commit id changes14:53
the only id that might be unchanged is the patch id, but that would also change in the scenario you described14:53
mbuf joined14:53
bobmcw joined14:54
fujin left14:55
mbuf other than doing cat .git/logs/HEAD .git/refs/heads/master, how can I tell where the current HEAD or master is pointing to?14:55
doener git rev-parse HEAD master, git show HEAD master, git log HEAD master, ...14:56
mbuf doener: thanks14:56
hyperair left14:57
cedricv left14:59
Kimmie joined14:59
woei joined14:59
RaySl_ left14:59
hyperair joined15:01
cilly joined15:01
willb joined15:02
sikanda left15:04
javatexan joined15:05
R_Dday hello15:05
I am doing this15:05
fujin joined15:06
leo2007 after knowing how to use rebase, it seems very hard to live without it15:06
R_Dday git checkout -t origin/master15:06
in order to swich branch15:06
but I get this15:06
fatal: git checkout: --track and --no-track require -b15:06
reprore joined15:06
jast that only works in git 1.6.1 and newer15:07
in older versions you'll have to use: git checkout -b master origin/master (though don't you already have a master branch?)15:07
wereHamster R_Dday: origin/master is a 'remote tracking branch'. You should not work on that directly15:07
jast wereHamster: look up what -t does in 1.6.1 ;)15:08
doener wereHamster: with the new -t shortcut, that's the same as "git checkout --track -b master origin/master"15:08
sikanda joined15:09
doener R_Dday: for just switching branches, that seems wrong though. You usually already have a branch head called "master", to just switch to that you'd just use "git checkout master"15:09
lois[pac] joined15:09
psankar joined15:09
harinath joined15:10
kalle_ left15:11
kalle_ joined15:12
harinath left15:12
gilimanjaro left15:12
faithfulgeek joined15:14
loincloth left15:15
raydeo joined15:15
seangrove joined15:16
sekimura_ joined15:19
aaron1 joined15:20
sekimura left15:20
aaron1 hello, I have a question about git on windows15:21
dsop don't ask to ask, just ask15:21
aaron1 k15:21
when I clone a repo, I get files marked as modified15:21
cilly left15:21
aaron1 I am aware of the cr-lf issue15:22
but the file marked modified has cr-lf eols15:22
on the repo15:22
doener and that's the problem15:22
Grum you get all files marked as modified?15:22
aaron1 no, just a handful15:22
there seems to be no difference between files marked modified and files not modified15:23
doener the file in the filesystem has crlf, gets converted to lf and compared to the repo contents which have crlf -> whole file differs15:23
aaron1 in terms of eol15:23
deavid left15:23
voker57 joined15:23
Grum doener: doesn't core.autocrlf true fix that?15:23
doener aaron1: not in the working tree, but in the repo15:23
aisbaa joined15:23
doener Grum: no, that breaks it15:23
aaron1 no it doesn't15:23
I tried various settings for core.autocrlf15:23
deavid joined15:23
aaron1 in gitconfig15:23
doener Grum: core.autocrlf true assumes that the repo holds files with just LF15:23
aaron1: set it to false, then "git reset --hard"15:24
aaron1 ok15:24
but, I tried setting it to false before clone, and same problem15:24
Grum well you want a checkout with 'LF' then commit that, and then use core.autocrlf right?15:24
aaron1 all files on repo seem to use cr lf as EOL15:24
doener aaron1: how did you check?15:25
aaron1 hexedit15:25
doener aaron1: using "git show"/"git cat-file"?15:25
Grum euh CR is oldskool macs (pre 10.x)15:25
tango_ left15:25
doener Grum: well, that you can achieve by having autocrlf enabled and then just doing "git reset --hard; git add -u; git commit -m Convert\ to\ LF"15:26
tim_jenssen left15:26
doener Grum: but that adds a pretty annoying EOL-change commit15:26
jrmuizel joined15:26
loincloth joined15:26
doener Grum: no fun when you get to merge some LF with a CRLF version15:26
Grum doener: beats having 'half with/half without' by miles :D15:26
aaron1 why are only some files marked modified15:26
if all files seem to have CRLF15:27
I haven't checked all of them15:27
mbuf left15:27
Tricon left15:27
Grum the checkout will be consistent aaron1, the files in the repo arent15:27
doener aaron1: again, what did you check? The files in the working tree? Of course they are all CRLF, autocrlf makes them so15:27
benn_d_ joined15:27
aaron1 more info: this was on my home system yesterday, on windows15:27
doener aaron1: only checking the stuff that "git show" or "git cat-file" shows is a valid test15:28
aaron1 today, at work, on Ubuntu, I did hexedit on checked out files15:28
and saw CRLF15:28
doener: thanks, I will try that15:28
doener then that files probably actually has CRLF EOLs (unless you enabled autocrlf on that box, too)15:28
and that causes the "modified" behaviour15:29
aaron1 is CRLF on or off on unix?15:29
doener core.autocrlf you mean? Off by default. Only msysgit enables that by default15:29
Grum doener: why git add -u and not just commit -am ?15:29
doener Grum: I just don't do "commit -a" ;-) Good old finger memory15:30
Grum =D15:30
Zenopus_ joined15:30
doener Grum: and I prefer a mix of CRLF and LF files when the alternative means that I have to deal with a shitload of useless merge conflicts15:31
greyface joined15:31
Grum well you can just turn all into LF and have the people on windows use core.autocrlf true right?15:31
netoman left15:32
Grum just punish people for putting CRLF in your repo =D15:32
doener mumbles something about git-svn15:32
Grum svnequalsfail15:32
aaron1 so, does this make sense that of two files that seem to use the same EOL convention, only one is marked modified?15:32
Grum doener: simplest thing would be to just ignore the existence of windows users :D15:33
gaveen left15:33
aaron1 lol15:33
doener aaron1: if both of them use the same eol-style _in_the_repo_, then no15:33
dwt left15:33
doener aaron1: if you just look at the working tree, that's useless information if core.autocrlf is turned on15:34
aaron1 my hexedit was done on a unix system15:34
alester So much discussion on sha-115:34
and nobody cares about my poor little patch. Oh woe!15:34
aaron1 so, that info should be correct, yes?15:35
so, only about 10 files are marked modified15:35
a quick fix would be to add and check them in, I suppose15:36
nabilelisa joined15:36
Grum alester: what did you patch? :D15:36
doener aaron1: not if you have core.autocrlf turned on. Just because the *nix versions usually don't turn that on by default doesn't mean that you cannot have turned it on yourself, or maybe you're using a package with a retarded maintainer or whatever15:36
alester Oh, heck, it was just some refactoring of redundnat code.15:36
nothing big.15:36
I just don't know what the git dev cycle is like.15:37
fujin left15:37
reprore left15:37
whaley joined15:37
nabilelisa hi all - can anybody talk to me about git server options? i'd like to be able to setup something like github for private use within my office - i understand that's not the case but maybe gitosis is sufficient? if anybody has any experience in those i'd appreciate some advice15:37
reprore_ joined15:38
rraasch left15:38
drewolson joined15:38
Grum ask your questions nabilelisa :)15:38
doener alester: I don't see any patches from you on the mailing list15:38
Grum and yes you can use gitosis and gitweb to make something usable quite easily15:38
nabilelisa Grum: well basically i installed gitosis and was only able to read the repo - not write. is that a limitation or was i doing it wrong?15:38
gaveen joined15:38
alester here's an example15:38
http://n2.nabble.com/-PATCH-1-2--Localizing-temporary-variables-td2674500.html15:38
leo2007 I just clone a git repo that has a .git directory > 40 M15:39
javatexan left15:39
Grum nabilelisa: that is because you didn't tell gitosis the repo was writable for the user you were authenticating with15:39
leo2007 how can I cut down its size. I am only interested in it latest 100 or so commits15:39
nabilelisa Grum: ok, so then if i spend more time i can probably find the appropriate config file. thanks. do you know what the difference is between using the git:// protocol vs. the http://?15:39
voker57_ left15:40
aaron1 I have another question about submodules: my user name on the remote repo differs from my login, so I clone a repo using the following: git clone user@gitrepo/project15:40
then I run git submodule init, and all seems fine15:40
Grum nabilelisa: git:// is smart and faster than http://15:40
aaron1 but when I run git submodule update, it asks me for the ssh password for the login user15:41
javatexan joined15:41
aaron1 not the user I used to clone15:41
Grum nabilelisa: if you are using gitosis you normally use ssh for authentication15:41
Ilari nabilelisa: Also both can do fetch and push, but push with either is bad idea (for git:// its insecure, and too hard to set up for http://).15:41
Grum which is why people usually use gitosis, as it provides a 'secure' way to push with some basic ACLs15:42
doener alester: ah, had been looking for your surname15:42
nabilelisa Grum: ok, aaaah, ok cool15:42
alester that's what I searched on.15:42
benn_d left15:42
nabilelisa Grum: so if i use gitosis, then i get ssh and git:// then it should be safe/secure?15:42
doener alester: I search for "From" in mutt ;-)15:42
Grum nabilelisa: we've set it up that people just push/pull from git:project15:42
loinclot_ joined15:42
doener s/search/searched/15:42
Grum nabilelisa: gitosis by default provides read/write via ssh (that is the reason of it existing)15:43
you can give anonymous read access through git:// but why would you do that? :D15:43
nabilelisa Grum: ok great. no im not interested in annoymous read :)15:43
Grum: so is it enough to just install and configure gitosis? or do you recommend that i do anything else too?15:44
Ilari nabilelisa: Also, git daemon is for git://, so if you don't need it, you don't need to run git daemon.15:44
Grum nabilelisa: while using ssh you can severly shorten the 'clone url' by making a simple .ssh/config entry like: Host git\n\tHostname host.of.gitosis.box\n\tUser gitosis-user15:44
nabilelisa Ilari: thanks - i thought so but it's good to have confirmation :)15:45
Grum nabilelisa: hence we clone from git:project now (lovable short urls) which is the same as cloning from: git@gitbox:project.git or ssh://git@gitbox/project.git15:45
nabilelisa Grum: thats very interesting, is there a page i can read up on that? does it have a name?15:46
Grum nabilelisa: that is just default ssh configuration15:46
nabilelisa oh right15:46
marvil07 joined15:46
tango_ joined15:46
nabilelisa Grum: so basically i should just go ahead and use gitosis - the defaults sound like they are pretty much close to what i need15:46
Grum gitosis only provides multiuser accesses through a single user using ssh authenticated by public/private keys and adding a basic ACL15:47
err multiuser access ;)15:47
nabilelisa Grum: yes, i noticed the single ssh user - but my commits will still have my name on them, right? because ive configured git on my local machine to know my email/name?15:47
Grum yes15:48
and gitosis knows who you are because you authenticate with your private key15:48
against your public key in the gitosis repo15:48
nabilelisa Grum: i see15:48
Grum so it can deny access for certain repos if you please15:48
nabilelisa Grum: very nice. i think i'll go and give it a try now. thanks for all your help!15:49
Grum yw :)15:49
nabilelisa Ilari: thanks for your help - much appreciated!15:49
Grum there are some nice guides for gitosis out there btw, first hit on google works like a charm (english that is ^^)15:49
Ilari nabilelisa: One problem with gitosis is that one can't log pushes without modifying gitosis (one line change).15:49
ceej joined15:50
Zenopus left15:50
Zenopus_Zenopus15:50
nabilelisa Ilari: hrm, what line is that? :P15:50
Grum gitosis is quite the raw product, it was made to suit a single person's wishes15:50
benn_d_ left15:50
deavid left15:50
benn_d joined15:51
nabilelisa Grum: i get that feeling too - do you know of anything more refined? something as slick as github? :P15:51
Ilari nabilelisa: There's place (in serve.py?) where user's name is in variable 'user'. You need to export that as environment variable.15:51
nabilelisa: There's gitorious. I don't know much about it.15:51
altrux left15:52
Grum nabilelisa: just use gitweb next to it :)15:52
point it at the repo folder and pew!15:52
bratsche left15:52
Ilari nabilelisa: And gitosis is not that complicated. One could quickly do very crude replacement (without remote admin features) if one understands the construction principles involved.15:53
bratsche joined15:53
reprore__ joined15:53
reprore_ left15:53
Grum doener: do you have any idea why the output of git branch -a is different in 2 freshly cloned repos ? (see: http://git.pastebin.com/m2fc6d2ec )15:53
emias In most cases, a Unix user per Git user and SSH access (plus gitweb) should do just fine. No idea why everybody seems to be stingy with creating Unix users these days (just to re-implement user management on top of a single Unix user afterwards).15:54
kadoban left15:54
chalky left15:54
loinclot_loincloth_15:54
deavid joined15:54
Ilari emias: Gitosis can manage more flexible ACLs. There are POSIX ACLs, but they have usability problems...15:55
Grum doener: the git version is 1.6.2.1 vs 1.6.2.3 .. but that cant be giving such odd results? there are no global or system configs..15:55
emias Ilari: Well, for our site, managing access through plain Unix groups is enough and I would've assumed that this is true for most (though admittedly not all) sites.15:57
Ilari emias: Especially changing permissions implemented using POSIX ACLs... Requires owner override permissions (root).15:57
alanhaggai left15:57
loincloth left15:58
Grum managing access through unix groups is a pain and severe overkill if you just want a git repo :)15:58
mostly because you have to add a user to the system if you jsut want to give someone access15:58
instead of simply adding a keydir/$user.key file :)15:59
sunblushsunblush|away15:59
drewolson left15:59
psankar left16:00
MisterN joined16:00
juanjoc joined16:00
straszheim Grum: which setup just uses keydir/$user.key ?16:02
doener Grum: 209d336ae3923f2c1783a42b12fca50f3bee080216:02
Gitbot [git 209d336ae]: http://tinyurl.com/cw9kcu -- builtin-branch: improve output when displaying remote branches16:02
doener Grum: that's the responsible commit, but that's in 1.6.3-rc0, not 1.6.2.316:02
Grum straszheim: gitosis16:03
rylar joined16:03
Grum doener: hmmm so why on earth am i having this problem?16:03
romao joined16:03
patrikf joined16:03
cilly joined16:04
Grum and the 1.6.2.3 is doing it 'normally' from my PoV16:04
Kimmie left16:04
doener Grum: in the pastebin, the first one shows the new behaviour16:04
Grum: are you 100% sure that that box isn't running something newer?16:05
aaron1 left16:07
sikanda left16:07
straszheim hey, that gitosis looks nice and clean. good tip. thanks.16:08
bremner any gotchas for always using pull --rebase?16:09
jceb joined16:10
Ilari bremner: If the branch is pushed elsewhere, that's bad thing to do.16:10
dwave_ joined16:10
Ilari bremner: Also, if branch has merges since last pull, that's also bad idea.16:11
kalle_ left16:11
kalle_ joined16:12
naeu left16:12
bremner hmm, ok the merges since last pull I didn't think about. thanks16:12
corni joined16:12
faithfulgeek left16:12
loincloth_loincloth16:12
catalis left16:14
bobmcw left16:14
zpoley joined16:15
yec left16:16
ceyusa joined16:17
jayallen-afk left16:17
Alinermedia joined16:20
neoeinstein_neoeinstein16:21
khmarbaise left16:21
leanucci_ joined16:21
mattions left16:23
WALoeIII joined16:23
faithfulgeek joined16:24
airtonix left16:25
cilly left16:26
argonel joined16:26
dwave_ left16:27
jnareb joined16:27
dwave left16:27
jnareb Hello16:28
jacobat Hi16:28
jnareb Was 'Interactive graph GUI' project announced somewhere beside GSoC page, like git mailing list or SoC2009Ideas wiki page?16:29
http://socghop.appspot.com/student_project/show/google/gsoc2009/git/t12402237628516:29
jceb left16:29
shruggar left16:31
ashleyw joined16:32
nabilelisa left16:32
jceb joined16:34
bgerber left16:34
wereHamster jnareb: My understanding is this: It shows you the graph and you can interactively reorder commits, change commit messages etc and it will issue rebase -i or whatever is needed in the background16:34
tal67 left16:35
jnareb I was not asking what is it about. I was asking whether the idea was presented to the public before being accepted as GSoC 2009 project.16:35
where Git Wiki and git mailing list counts as 'public'16:36
#git IRC channel or #gsoc IRC channel also can count as public because they are archived16:36
sunblush|awaysunblush16:36
bobmcw joined16:37
wereHamster fails at reading, is wondering why16:38
aisbaa left16:38
qhoxie joined16:38
alester I think this weekend I"m going to take the plunge and start running git past splint.16:38
jmesnil left16:39
jmesnil joined16:40
leanucci left16:40
jnareb wereHamster: by the way, if I remember correctly in old DOS XTree file manager you were able to move and delete directories in a tree view16:41
jceb81 joined16:41
simosx joined16:41
elvedin joined16:42
whaley left16:43
alanhaggai joined16:43
jzellman joined16:43
elvedin How do I do username expansion (pushing to remote site - ssh://$USER@site.hostname/dir/path ) if I'm sharing my local repo with other developers?16:44
dwave joined16:44
reprore__ left16:44
alanhaggai left16:44
ThaDon was there a port of midnight commander to DOS? i seem to recall using it16:44
reprore joined16:44
sunblush left16:45
Ilari elvedin: 'ssh://USER@site/~username/path/' or something like that?16:45
jnareb ThaDon: No, XTree was not NC-like file manager; it was "Explorer like" (but it was earlier than Explorer) which operated on tree view of directories + view of files in a directory16:45
elvedin Ilari: yeah16:46
We want to user the $USER shell variable to determine which user to SSH as16:46
jnareb elvedin: usually it makes more sense to use key-based authentication for git+ssh16:46
elvedin Yep, but we can't do that16:46
jnareb elvedin: currecntly you cannot16:47
elvedin: (at least not for shortcut names). remote.<remotename>.url is not explanded WRT environmental variables and similar stuff16:47
Ilari elvedin: Doesn't ssh by default use current user id as remote user id?16:47
sitaram left16:48
jzellman Hi, I'm having a problem when i do subsequent git pulls on a clean master it tells me that my branch is ahead of master by an ungodly amount of commits. http://gist.github.com/101204 Anyone see this before?16:48
priidu left16:48
jnareb elvedin: athough there was talk about adding '--path' type to git-config, which would do envvar expansion (and tilde expansion)16:48
elvedin Ilari: It does, but we sudo into a common development user16:48
hobodave joined16:48
altrux joined16:49
jnareb elvedin: and you cannot use key-based authentication (ssh-add/ssh-agent and perhaps keychain) authentication why?16:49
elvedin jnareb: Security issues16:49
reprore left16:49
reprore joined16:50
elvedin We try not to subvert our sysadmin/security overlords too much as they'll completely lock us out if we do this16:50
leanucci_ left16:50
leanucci joined16:50
leo2007 any possibility to reduce the size of .git dir?16:51
sitaram joined16:51
elvedin What about the GIT_SSH variable?16:51
jnareb leo2007: "git gc"16:51
leo2007 i run that and it is still 41M16:51
the rest of the project files combined is < 2 M16:52
jnareb leo2007: you might need to expire reflogs16:52
Ilari leo2007: 'git repack -a -d -f --window=250 --depth=250', but thats VERY slow.16:52
jzellman will git reset orgin/master work for this?16:52
octagon joined16:52
jnareb leo2007: and/or use "git prune" (assuming that there is not other process that access this repository)16:52
giallu left16:52
Ilari jzellman: Try 'git fetch origin'?16:53
leo2007 no, basically I am cloning a repo so that I can use it but I'm not developing it.16:53
Ilari jzellman: Ah, it already ran it.16:53
devicenull_ left16:54
jnareb elvedin: you don't need admin rights for key-based authentication for SSH. only public key on remote host, and private key added to ssh-agent on local host, IIRC16:54
jceb left16:54
jnareb leo2007: "git clone --depth=1" if you don't need history16:54
leo2007: .git contains full history of a project16:54
leo2007: (which might include large files currently deleted)16:55
schlort joined16:55
jnareb What nick Dscho uses here?16:55
rylar left16:55
leo2007 nice let me try it out16:55
octagon_ joined16:56
AkumaStreak joined16:56
a-atwood joined16:56
octagon left16:57
jnareb About 'foreign' git projects at GSoC 2009: did anyone find something more than:16:57
* #git (Mono project)16:57
* git backend, Mercurial API/CLI (Mercurial)16:57
* git backend for Build Service (openSUSE)16:58
?16:58
leo2007 jnareb: reduce the size a bit, from 41M -> 33M16:58
how to expire anything before 2009-02-2816:58
jnareb leo2007: what did reduce size?16:58
sitaram leo2007: is this a fresh clone?16:59
leo2007 git clone --depth=1 did16:59
yes16:59
sitaram if so, you shouldn't have any reflogs...16:59
leo2007 I tried 'git clone --depth=1 git://repo.or.cz/org-mode.git'16:59
sitaram so when you say expire before 2009-02-28, it doesn't help if you already did a depth=1 clone,16:59
Ilari jnareb: Someone on mailing list slammed Mono for picking that project...17:00
sitaram nice :)17:00
sitaram is way behind on reading the list17:00
sitaram leo2007: maybe you want to find out what file is taking all that space?17:00
leo2007 it is .pack file under .git/objects/pack17:01
schambers left17:01
jzellman Ilari: git fetch origin did not work17:01
sitaram leo2007: I didn't mean that... I meant what file in the repo17:02
Ilari jzellman: It still displays ungodly amount of local commits?17:02
jzellman llari: this all began when my coworker ran git push --mirror origin which totally f'ed things up.17:02
llari: yeah it does17:02
leo2007 sitaram: files in the repo are relatively small, all of them combined is less than 2 M17:02
Ilari jzellman: And "didn't work" means "didn't chnage things" or "failed with error"?17:02
jzellman llari: sorry, didnt change things17:03
Ilari leo2007: Did last commit remove those, IIRC, depth 1 really gets 2 commits.17:03
sdizsdiz-afk17:03
Ilari leo2007: Also, other branches?17:03
sitaram leo2007: then you have many many files perhaps?17:03
Ilari jzellman: Maybe that 322 commits is accurate? Maybe try 'git push origin master'?17:03
jzellman llari: new paste: http://gist.github.com/10121117:03
sitaram leo2007: in the top of the work tree: 'du -sk . .git'? can you tell us what this says?17:04
sikanda joined17:04
sdiz-afksdiz17:04
leo2007 sitaram: 41M.git17:04
cpg|awaycpg17:04
jzellman what about git reset origin/master? http://colabti.org/irclogger/irclogger_log/git?date=2009-04-22#l122817:05
d0k_ joined17:05
jceb81 left17:05
leo2007 the project has less than 100 files17:05
sitaram leo2007: and "."? (i.e., "du -sk ."?)17:05
krawek joined17:06
btanaka joined17:06
leo2007 sitaram: 45M17:07
Ilari jzellman: I think that wouldn't be a good idea. Unless you want data loss.17:07
sitaram ouch17:07
Ilari leo2007: How many branches 'git branch -r' lists?17:08
benn_d_ joined17:08
leo2007 Ilari: 717:08
Ilari jzellman: That --mirror might have destroyed commits from upstream repo, and part of those 322 commits might be those destroyed commits.17:08
benn_d left17:09
leo2007 is everything normal?17:10
I thought git is usually more efficient than svn17:10
Sho_ left17:11
Ilari jzellman: pull not grabbing anything and your branch being 322 commits ahead would indicate that you have history that continues from where the github repo leaves off...17:11
jzellman llari: ok thanks, yeah that's what i was thinking too17:11
Grum doener: git version 1.6.2.3.1.gfb039 ... that is what is running on the remote box, no idea what can be causing this though :)17:11
Ilari jzellman: Maybe try to push it back: 'git push origin master'?17:11
Sho_ joined17:11
kalle_ left17:11
Ilari Grum: Ah, that can be pretty much anything... :-)17:12
Sigma joined17:12
Ilari Grum: Probably some version out of master.17:12
Grum no, the 1.xxx is my commit17:12
kalle_ joined17:12
Grum 1.6.2.3 + 1 commit is what that says17:12
d0k left17:13
Chaser_ left17:13
loincloth left17:14
jceb joined17:14
ocornu joined17:15
Grum humz, the local one was the one being odd for its version, so i recompiled it and it is now doing sane stuff17:15
might as well upgrade to 1.6.2.4 now .. :D17:15
jnareb left17:15
aspotashev|eeepc joined17:15
mfilipe left17:16
sitaram leo2007: just for kicks: git ls-tree -lrt HEAD|sort -k4n|tail17:16
mfilipe joined17:16
j416 joined17:16
aziz joined17:17
jzellman llari: just tried git push origin master: http://gist.github.com/10121817:17
girishr joined17:17
marvil07 left17:18
sdizsdiz-afk17:19
giallu joined17:19
jzellman llari: you'll notice the forced update I did a git show on b27a181 and it was the last commit before things got hosed by --mirror17:19
leo2007 sitaram: http://paste.lisp.org/display/7914317:20
sdiz-afksdiz17:21
solar_ant joined17:21
jmesnil left17:22
Dashkal joined17:23
reprore__ joined17:24
Ilari jzellman: Try 'git ls-remote origin' and see what it says as hash for refs/heads/master and compare to 'git for-each-ref' output.17:24
reprore left17:24
Ilari jzellman: I have feeling that that HEAD branch is screwing things up.17:24
jzellman: Does 'refs/heads/HEAD' exist on remote repo (git ls-remote origin)?17:25
vienova left17:25
sitaram leo2007: that doesn't look right for "sort -k4n"... It should have sorted by the 4th field, numerically17:26
leo2007 sitaram: I am on mac os x. Would that matter?17:27
jzellman llari: yes refs/heads/HEAD does exist17:27
leo2007 man the manual of sort says -k, --key=POS1[,POS2]17:28
Ilari jzellman: Maybe nuke it: 'git push origin :refs/heads/HEAD'.17:28
jzellman llari: refs/heads/HEAD is different than refs/heads/master (remote and locally). Also refs/heads/master is the same locally and remote17:28
sitaram leo2007: probably... sorry I don't know the syntax for BSD sort; I was hoping to get a name for the 10 largest blobs in your 40MB of repo17:28
leo2007 s/man/and/17:28
jzellman llari: nuke sounds scary, haha17:29
sitaram leo2007: try with a space afer the k then, like "-k 4n"17:29
Ilari jzellman: It seems to be in past of master anyway. And is probably the source of the problems.17:29
jzellman llari: I think you are correct, is refs/heads/HEAD needed for anything?17:30
Ilari jzellman: Its local branch HEAD. Usually shadowed by ref HEAD.17:31
jzellman: And tends to be problematic anyway. Can it even be checked out?17:31
leo2007 sitaram: I just did git ls-tree -lrt HEAD and the output is http://paste.lisp.org/display/7914417:31
it is about 10 lines only17:31
Ilari jzellman: Qualifying it causes checkout to detach. If its not qualified, checkout might mix it up with ref HEAD...17:32
kraut joined17:33
sdizsdiz-afk17:33
smtms joined17:34
kraut left17:34
stephenjudkins joined17:34
altrux left17:34
jzellman llari: I can check it out: git branch --track my_head origin/HEAD17:34
Branch my_head set up to track remote branch refs/remotes/origin/master.17:34
sdiz-afksdiz17:34
ilteris_ joined17:34
loincloth joined17:34
Ilari jzellman: I mean check out local branch HEAD (not to be tried in any production repo).17:35
sitaram leo2007: my apologies: you need "-l -r -t" -- all 3 options separated out; I did not realise git was sensitive that way :)17:35
it should be far longer :)17:35
altrux joined17:36
doener Ilari: works fine, refs/heads/HEAD takes precedence. http://git.pastebin.com/m71edf9b17:36
leo2007 sitaram: http://paste.lisp.org/display/7914617:36
yes it is longer17:36
solar_ant left17:36
reprore__ left17:36
nis joined17:37
kraymer joined17:37
reprore_ joined17:37
aspotashev|eeepc left17:37
Ilari jzellman: Well, maybe just get rid of that branch. I guess its the source of the problems.17:37
sitaram leo2007: you seem to have got the sort working also; this does seem to be sorted the right way17:38
leo2007 excellent17:38
thraxil left17:38
sitaram leo2007: the bad thing is the largest file appears to be just over 600kb, which is peanuts. How about 'git ls-tree -l -r -t | wc -l' (no need to paste; will be just a number)17:39
meaning just type it in the channel17:39
Sho_ left17:39
jceb left17:40
Sho_ joined17:40
leo2007 sitaram: 13617:40
justatheory Ilari, doener, Fissure: Thanks! http://justatheory.com/computers/vcs/git/bricolage-to-git.html17:40
bleything joined17:40
sitaram and also git rev-list --all | wc -l17:41
jceb joined17:41
dodo_the_last left17:41
dodo_the_last joined17:41
bleything I'm having some troubles with git-svn. when I do a rebase, I'm getting conflicts (which I totally don't understand, but that's a different issue)... it tells me to resolve the merge and run git rebase --continue.17:42
bratsche left17:42
leo2007 sitaram: 212417:42
aspotashev|eeepc joined17:42
jzellman llari: ok im confused now. I was under the impression that HEAD should be the same as refs/heads/master. What is the point of refs/headsHEAD? Is this a typical ref or is this due to how we got back up and running after --mirror?17:42
bleything so I do that, and it says "No changes - did you forget to use git add". No, I did not. I resolved the commit and added it.17:42
bratsche joined17:43
Ilari jzellman: I have no idea where it came from. The way it causes problems is: On one fetch, the remote mirror is up to date w.r.t. master. Now, it has HEAD symlinked to master, so it isn't up to date w.r.t. HEAD. Updating head updates master due to symlink. Now master is out of date. Next fetch brings master back up to date, but cause HEAD now be out of date.17:44
solar_ant joined17:44
Ilari bleything: Does 'git status' show any changes?17:45
bleything after the git add, no.17:45
Ilari bleything: 'git rebase --skip'.17:45
bleything interesting.17:45
leanucci left17:46
Ilari jzellman: Its presumably safe to just delete it (git push origin :refs/heads/HEAD).17:46
leanucci joined17:46
bleything Ilari: neat, that worked. thanks :D17:46
sitaram leo2007: I'm trying to figure out why a "depth=1" clone will have to many revisions; give me a minute or two17:46
leo2007 sitaram: that's in a repo without the depth=117:47
do you want me to give you the results with depth=117:47
the repo is still more than 33M17:48
Ilari leo2007: If 'git branch -r' gives 7 branches, there are more branches than just one involved.17:49
altrux left17:50
saurabh1403 joined17:50
saurabh1403 left17:51
RaySl__RaySl17:51
thumper left17:52
sitaram leo2007: oh17:52
leo2007 Ilari: what does that mean?17:52
doener left17:52
doener joined17:52
sunblush joined17:52
Ilari leo2007: It means that there can be more files involved than just 2M worth...17:52
sitaram leo2007: I just tried depth=1 on a repo with 4 branches, and I got 8 revisions. The depth always adds one (it is a known fact/bug/issue/whatever), so 2*417:53
leo2007 ok17:53
sitaram leo2007: what was the exact clone command you used in the depth=1?17:53
leo2007 git clone --depth=1 git://repo.or.cz/org-mode.git17:54
sitaram leo2007: I'm stumped... but that seems to be a public repo, so let me try...17:56
leo2007 sitaram: yes, it is public17:56
jceb left17:58
sitaram leo2007: give me a few min to take a look around...17:58
leo2007 sitaram: no problem, i'll be around in the next 1 hour17:58
ashleyw left17:59
antoranz joined18:00
hulo joined18:00
jnareb joined18:00
benn_d joined18:01
hulo hellu! Im following http://toolmantim.com/articles/setting_up_a_new_remote_git_repository I created a repo in my ~ (for my config files) but there has been a problem. Everything is okay until the part where "git checkout --track -b dev/rails-2 origin/dev/rails-218:01
this appears to remove all of the git-tracked files in ~/18:01
this is bad news for me :( as they were mostly conf files18:01
dreamcat4 joined18:02
cpg hi all, can someone help me clean up this merge issue? http://gist.github.com/10124318:02
benn_d_ left18:02
Ilari hulo: Git isn't meant to track home directory.18:02
intripoon left18:02
jnareb hulo: "git checkout -"18:02
hulo: git would not remove files it didn't save _somewhere_18:03
hulo: (at least it shouldn't)18:03
hulo Ilari: i know. it's for bigger projects that that18:03
following the instructions: i sought to create ~/scratch as the workdir, where i can make changes18:03
Ilari hulo: In case where thre's no existing checkout and one needs to checkout something without overwriting local files, you need to decompose the checkout operation.18:04
jnareb: This is one of those exceptional cases. :-(18:04
hulo i don't quite understand what you meant Ilari18:04
sitaram leo2007: well to start with there are 203 tags -- and so you have 302 revisions even in the shallow repo :)18:04
(203+7=210, 210*2=420, but there were some overlaps)18:05
Ilari hulo: Don't use checkout if you don't have existing checkout and the contents of worktree are important.18:05
hulo Ilari: oh18:05
khmarbaise joined18:05
hulo Ilari: i thought that command pretty much meant :i'll be working in branch tree named dev/rails-2 now18:06
Ilari hulo: If you don't have checkout yet, it will imply --force, which destroys local changes.18:06
leo2007 sitaram: is there a way to just keep the last two revision?18:06
hulo Ilari: not just changes right? the original committed files too?18:07
i had to basically clone from the remote repo to get my files back18:07
faithfulgeek left18:07
Ilari hulo: Destroying commits is more difficult thing to do (without nuking or corrupting the whole repo).18:07
altrux joined18:07
Ilari hulo: Checkout won't destroy commits.18:08
jnareb left18:08
sikanda left18:09
hulo can i ask what may be a very silly question: so in my case, ~/.git/config shouldn't mention scratch at all (only master-as branch) and ~/scratch/.git/config would have scratch-as branch with no mention of master, right?18:09
sitaram leo2007: yes18:09
Ilari hulo: There are two independent repos, each with their own contents.18:10
sitaram leo2007: create a blank repo (mkdir x; cd x; git init) than fetch just master from the original (not the shallow, you can't fetch from there). After that, make a shallow clone from there to some other dir18:10
hulo Ilari: i understood a branch to mean essentiall the same files, but with the branch containing modifications that could later be merged with the original18:11
s/understood/misunderstood/ ?18:11
leo2007 sitaram: then I won't be able to git pull for updates, right?18:11
Ilari hulo: Pretty much. In git, branches can have multiple roots and two branches can be independent (do not share any commits).18:12
esparkman left18:13
sitaram leo2007: no18:14
esparkman joined18:14
sitaram leo2007: I just checked the 10 largest blobs from all 300 revisions, removed duplicates, and their total came to 400+ MB!18:14
bobesponja joined18:15
ceyusa left18:16
sitaram this repo has had a *lot* of churn; it's rare to see so much (I think) but now the 40MB .git size doesn't seem so bad :)18:16
leo2007 sitaram: did they use git correctly?18:17
davidfetter joined18:17
sitaram I don't know enough git to answer that, and anyway it's subjective18:18
e_6 joined18:20
sikanda joined18:20
leo2007 anyway I am deleting the repo now. I think I will just use the released version.18:21
jzellman llari: git push origin ;refs/heads/HEAD did the trick. thanks for all your help18:22
iamwilhelm joined18:24
bratsche left18:25
sitaram leo2007: ok; good luck!18:25
sitaram has to sleep18:25
mw___ left18:26
leo2007 sitaram: thank you sitaram. Sleep well.18:27
bratsche joined18:27
ambriento left18:28
kadoban joined18:28
ashleyw joined18:28
khear left18:29
fynn joined18:31
catalis joined18:32
tag left18:32
faithfulgeek joined18:35
aspotashev|eeepc left18:37
Phil_Ewert joined18:38
hyperair left18:41
spearce left18:42
Sigma left18:44
jnareb joined18:46
dwave left18:47
mikl joined18:47
jnareb spearce (and Dscho): would you be creating http://git.or.cz/gitwiki/SoC209Projects wiki page with this year 2 git projects?18:47
AAA_awright joined18:48
jnareb I do not have direct access to git.or.cz thanks to my ISP (TP S.A.) stupidity of null-route blocking of git.or.cz...18:48
hugoxrosa joined18:49
jnareb there are three 'foreign' git project that I found: Mono's #git, Mercurial git backend, openSUSE build git backend (perhaps there are more)18:49
dodo_the_last left18:49
hyperair joined18:50
catalis left18:51
catalis joined18:51
Pieter jnareb: what's the last one?18:51
hulo Ilari: can i bug you for a while longer?18:52
*short-while18:52
ned left18:52
sikanda left18:52
Jc2k joined18:53
tcurdt joined18:54
solar_ant left18:54
dodo_the_last joined18:54
tcurdt argh ... help! folks I did a "git-svn rebase" ... all good ... then a "git-svn dcommit" which then failed with error 1 "cannot rebase: you have unstaged changes"18:55
what's going on? I did not have any changes ...otherwise the git-svn rebase would not have worked18:55
and in what state am I now?18:55
Pieter rebase might work with unstaged changes18:55
try 'git status'?18:55
hyperair left18:56
hyperair joined18:56
tcurdt well ... now shows a lot of modified and deleted ... essentially my changes that I already have committed to git and wanted to commit to svn now18:56
kabus joined18:57
chris2 left18:57
Pieter looks like something went wrong then18:57
tcurdt I did "git stash" "git-svn rebase" "git-svn dcommit" ...and the last command failed18:58
but what went wrong? :) ...and more importantly how can I come back to a sane state18:58
hulo left18:59
jethro_ts joined19:00
Ilari tcurdt: Did the rebase finish?19:00
tcurdt: And not just fail, telling you to fix conflicts and continue rebasing...19:00
tcurdt Ilari: yepp ... the "git-svn rebase" went through fine19:00
mw joined19:01
lhz joined19:01
tcurdt apparently some of the svn commits made it19:02
some didn't19:02
seems there was an in-flight commit from someone else19:02
jethro_ts left19:02
tcurdt but that should not break it, right?19:02
rylar joined19:02
Ilari tcurdt: Maybe use git reflog to find the result of last rebase, reset to that and retry rebase followed by dcommit?19:02
antoranz left19:03
tcurdt Ilari: sounds good ... but I have never done that before :)19:03
iratik left19:03
sikanda joined19:04
tcurdt is starring at the man page of git-reflog but has no clue19:05
Ilari tcurdt: Essentially, undo what git svn dcommit did to branch.19:05
tcurdt: Just 'git reflog'.19:05
jnareb Pieter: http://stick.gk2.sk/blog/2009/04/prototype-git-backend-for-opensuse-buildservice/19:07
Pieter: or http://socghop.appspot.com/student_project/show/google/gsoc2009/opensuse/t12402315093919:08
tcurdt hm ... Ilari, now what ... I see the checkout, rebase and so on ... you mean finding the sha1 that reflects the current state in svn and go back to that?19:08
bcardarella Is there a way to edit the commit message of a locally commited revision before pushing back to a remote?19:08
jnareb definitely UGFWINII ;-)19:08
dreamcat4 left19:08
jnareb bcardarella: "git commit --amend"19:08
ned joined19:08
bcardarella jnareb:19:08
jnareb bcardarella: or GitFaq19:08
Ilari tcurdt: The state that's the result of last rebase.19:08
bcardarella jnareb: thanks19:08
Ilari tcurdt: And it produces helpful HEAD@{...} thingies. Those are valid SHA-1 expressions.19:09
piratepete joined19:10
piratepete left19:11
tcurdt Ilari: hm ... I see those ... but I still have no clue how to make use of this helpful information :) "moving from master to" "updateing HEAD" "merge work: fast forward"19:11
no idea19:11
Ilari tcurdt: Can you pastebin the output?19:12
tcurdt man ... I am using git for a while now and still feel like a stupid newbie19:13
sure19:13
Ilari: http://rafb.net/p/g3Vmqd39.html19:14
dotsintacks joined19:14
Ilari tcurdt: HEAD@{2} is the last entry connected to rebasing.19:14
tcurdt Ilari: going from bottom to top?19:15
Ilari tcurdt: Actually, what branch you are currently on (git branch)?19:15
tcurdt on master19:16
sikanda left19:16
dotsintacks so I was trying to add a call out to source-highlight to cgit to format my tree views nicely...but I need popen() to redirect stdout to a different file descriptor19:16
Ilari tcurdt: The first entry is the most recent.19:16
dotsintacks anyone familiar with run-command.c enough to know if it has anything that can help me accomplish this?19:16
Ilari tcurdt: And third entry (HEAD@{2}) is the last connected to rebasing.19:17
leanucci_ joined19:17
tcurdt Ilari: OK ... I see that19:17
AAA_awright left19:17
Ilari dotsintacks: IIRC, run-command can redirect both stdin and stdout.19:17
porcnick joined19:17
Ilari tcurdt: After resetting to that, redo the rebase.19:18
tcurdt Ilari: so now I go back to HEAD@{2} and try a git-svn rebase again?19:18
AAA_awright joined19:18
hyperair left19:19
Ilari tcurdt: Yes. Don't use 'checkout' for going back to that, use reset.19:19
sikanda joined19:19
tcurdt hard/soft?19:20
Ilari tcurdt: Hard or mixed.19:20
jtong joined19:20
davidfetter left19:23
arohner joined19:25
krh_ tcurdt: runny19:25
radarek joined19:27
loinclot_ joined19:28
benn_d left19:28
benn_d joined19:29
jnareb krh_: heh19:29
brink joined19:29
bcardarella_ joined19:30
brink After git svn init and git svn fetch I have an empty directory and git status says Intial commit. Shouldn't I see some stuff?19:32
jnareb a'propos git jargon: it is good that we axed the last ent (= tree-ish) some time ago...19:33
loincloth left19:33
Ilari brink: 'git branch -r'. There's your "some stuff".19:33
brink Ilari: I see. So do I check out that branch?19:34
Ilari brink: To work on those, create a local branch for it first (git checkout -b newbranch remotebranch)19:34
wsc joined19:34
krh_ jnareb: yeah, definitely19:34
leanucci left19:34
brink Ilari: Something like 'git branch -b master git-svn' ?19:35
Ilari brink: Seems reasonable.19:35
brink: Arrgh... checkout not branch.19:35
brink Ilari: Of course. Checkout.19:36
Ilari brink: 'git checkout -b newbranch remotebranch' is the same as 'git branch newbranch remotebranch && git checkout newbranch'.19:36
bcardarella__ joined19:37
Pieter heh19:38
google code does hg19:38
bcardarella left19:39
SRabbelier left19:40
corybantic when unstaging a file using "git reset HEAD <file>", what does it mean when the terminal say "<file>: needs update" rather than "<file>: locally modified"?19:40
SRabbelier joined19:41
Ilari corybantic: Both refer to some kind of uncommitted changes to <file>19:41
corybantic Ilari: when it says "needs update" it doesn't seem to actually unstage it -- is there something else I should be doing to unstage it?19:42
Ilari corybantic: 'git rm --cached'?19:42
nekrad joined19:43
nekrad hi folks, in some of my repos, git-repack leaves lots of single objects, instead moving evrything to the pack files - is this usual ?19:44
RodP2 joined19:44
corybantic yeah that doesn't seem to work either, maybe there is something unusual w/ my env. this is what's happening: http://pastie.org/private/pm7sedjrjebvjp3payrng19:44
nighthwk1 joined19:47
Ilari nekrad: Those are dangling?19:48
nekrad and this means ?19:48
khmarbaise left19:48
Ilari nekrad: Not referenced by any ref or reflog entry...19:49
corybantic: CRLF translation enabled?19:49
nekrad but wouldnt git-gc remove them ?19:50
dwave joined19:50
Ilari nekrad: Not if they are recent enough.19:50
nekrad hmm. how old do they have to be to get removed by git-gc ?19:51
dwave left19:51
corybantic Ilari: nope, it's not set19:52
reprore_ left19:52
Ilari corybantic: Hmm... that reset should have unstaged those changes... BTW, that rm unstaged the entiere file, marking it for deletion. Maybe you want to reset to bring it back.19:52
corybantic Ilari: how would I check that crlf translation is not on? I don't see it in my ~/.gitconfig, not sure if it might be somewhere else19:53
leanucci joined19:53
tcurdt krh_: runny?19:54
Ilari: thanks for your help!! got it working!19:54
leanucci_ left19:54
jayallen joined19:55
Ilari corybantic: It could be also in .git/config19:55
corybantic: But that's not likely.19:55
corybantic yeah doesn't seem to be there19:55
hmm19:55
i'm running git v 1.5.4.319:56
bcardarella_ left19:57
catalis left19:57
dotsintacks left19:57
Ilari corybantic: That bit... old.19:57
scientes left19:59
jrmuizel left19:59
antoranz joined19:59
Ilari corybantic: Try retracking that file (using git reset HEAD <file>) and if it still has changes, maybe use git diff --cached on it?19:59
corybantic ok20:00
tatsuyao left20:01
mjf joined20:01
tcurdt left20:05
JohnnyL joined20:06
bcardarella joined20:08
hyperair joined20:09
bcardarella_ joined20:09
bcardarella__ left20:10
kabus left20:11
transplant joined20:11
kalle_ left20:12
kalle_ joined20:13
loinclot_loincloth20:15
nekrad left20:15
yann joined20:15
mfilipe left20:16
bcardarella left20:17
helo left20:17
schacon joined20:18
bcardarella_ left20:18
mjf left20:20
hiwd joined20:20
jnareb left20:21
mfilipe joined20:21
hugoxrosa left20:21
ehird joined20:22
mw left20:25
baetis-fly joined20:25
aspotashev|eeepc joined20:27
radarek left20:27
javatexan left20:28
leanucci_ joined20:32
galderz_ joined20:32
galderz_ left20:32
neoeinstein left20:34
jerbear joined20:35
lucsky left20:35
mw joined20:37
aspotashev|eeepc left20:37
galderz left20:37
octagon_ left20:37
octagon_ joined20:38
jerbear left20:38
benn_d left20:39
benn_d joined20:39
baetis-fly left20:40
stephenjudkins left20:40
Cap_J_L_Picard joined20:40
transplant left20:42
stephenjudkins joined20:43
Cap_J_L_Picard left20:43
Cap_J_L_Picard joined20:45
fridim_ left20:47
hiwd left20:48
brink left20:49
leanucci left20:49
brink joined20:50
faithfulgeek left20:51
hiwd joined20:52
hiwdmontylounge20:53
benn_d left20:54
benn_d joined20:54
corni left20:54
qrush left20:55
jas4711 left20:55
kate21de joined20:56
esparkman left20:57
AAA_awright left20:57
tobbez joined20:58
AAA_awright joined20:58
poseidon joined20:59
andrewkasper joined20:59
tobbez why could it be that my local git repo thinks it's ahead of origin/master when it's _at_ head of origin/master?20:59
jackdempsey left21:01
hugoxrosa joined21:01
tobbez i just cloned a remote repo, and when i pull changes made to that repo by another collaborator i get "Your branch is ahead of 'origin/master' by 2 commits." in git status (where 2 is the number of commits the other collaborator has made)21:01
doener you probably did "git pull <remote> <branch>" which doesn't update the remote tracking branch, which is used to calculate those numbers21:02
just "git fetch <remote>" to update them21:02
cemerick left21:04
tobbez ah, did that by mistake instead of git pull <remote> after getting used to git push where you have to provide branch. thanks :)21:04
kalperin joined21:04
lorandi left21:05
doener tobbez: "git pull <remote>" is probably one of the most, uhm, misunderstood commands21:05
kalperin hiya. is there a good way to roll back the latest bad commit (already pushed to remote repository).21:06
bremner kalperin: man git-revert21:06
Gitbot kalperin: the git-revert manpage can be found at http://git.or.cz/man/git-revert21:06
Casan joined21:06
dwave joined21:06
doener tobbez: especially when "<remote>" really is a remote (like "origin") and not just a repo url (like git://host/repo), it probably just happens to work for the same reason that makes the "<remote>" part unneeded ;-)21:06
kalperin thanks bremner!21:07
doener tobbez: if you care about "details" --> http://git.pastebin.com/m5f1ac3b1 -- if not, just ignore that21:07
kalperin i'm not sure that revert will work because there are two parents21:07
dwave left21:08
wsc left21:08
cilly joined21:09
bremner oh, bummer. try in the local repo? you can always reset21:10
doener revert -m<parent>21:10
jas4711 joined21:11
benn_d left21:11
doener e.g. when you did something like "git checkout master; git merge foo" and want to "revert" the merge of foo into master, then "git revert -m1 $merge-commit" will do that21:11
benn_d joined21:11
cilly left21:11
JohnnyL left21:11
tobbez doener: thanks for the explaining, reading it now21:11
kalle_ left21:12
kalle_ joined21:12
doener OTOH, using "git revert -m2" would in this case try to revert the changes relative to the second parent (foo)21:12
bryanl left21:13
doener note that doesn't undo the fact that git sees the branch as merged, it just reverts the changes from the merge. So if you do "git merge foo" later, it would just say "Already up-to-date"21:13
kalperin i'm a little concerned about that because of this from the man page:21:13
Reverting a merge commit declares that you will never want the tree changes brought in by the merge. As a result,21:13
later merges will only bring in tree changes introduced by commits that are not ancestors of the previously reverted21:13
merge. This may or may not be what you want.21:13
sikanda_ joined21:13
kalperin it seems like this would tie our hands for later merges21:14
doener kalperin: well, you can bring the changes back in by reverting the revert21:14
Tricon joined21:14
qrush joined21:14
doener kalperin: but it does get a bit error-prone, as you might forget to do that...21:14
kalperin yeah, that doesn't see, like an optimal solution21:15
reading this now: http://www.kernel.org/pub/software/scm/git/docs/howto/revert-a-faulty-merge.txt21:15
ashleyw_ joined21:15
cxreg is removing $GIT_DIR/refs/original an intentionally manual step of filter-branch?21:16
doener cxreg: isn't that true for all kinds of backups? You don't want some tool to automatically destroy it, do you? ;-)21:16
s0ber_ joined21:17
qrush_ joined21:18
qrush left21:19
cxreg doener: heh. fair enough. i'm just trying to form succinct instructions for people to fix their commit notes if we reject them using an update hook21:19
qrush joined21:20
cxreg because it's hard to make everyone remember to install pre-commit hooks :/21:20
qrush_ left21:20
cxreg or PREPARE-COMMIT-MSG or whatnot21:20
univate joined21:20
doener cxreg: if there are no merges involved, I think rebase -i is better than filter-branch (unless you need to do basically the same change to every commit message, but that seems like a weird requirement)21:21
qrush left21:22
cxreg doener: yeah but rebase -i is harder to teach people21:22
doener cxreg: and if you use filter-branch, there's an easy for-each-ref + xargs command in the man page to get rid of refs/original21:22
sikanda left21:22
ashleyw left21:22
cxreg well, maybe not21:22
it's just edit and ammend21:22
Phil_Ewert left21:23
Tricon left21:23
gilimanjaro joined21:23
cxreg doener: hm, ok thanks21:23
montylounge left21:23
cxreg i didn't even know for-each-ref existed :-)21:24
doener cxreg: harder than filter-branch --msg-filter? No way... That filter needs a script that spits out the right commit message for each commit to be filtered21:24
catalis joined21:24
wsc joined21:24
cxreg yeah. hm.21:24
sikanda_ left21:25
earcar joined21:25
sikanda joined21:25
seangrove left21:26
cxreg maybe i should write a git fix-yer-damn-notes and distribute that21:26
wsc left21:26
dodo_the_last1 joined21:27
Weaselweb left21:27
dodo_the_last left21:27
Tricon joined21:28
markelikalderon left21:29
earcar left21:30
binjured left21:30
gilimanjaro left21:30
kalperin so here's what i want to try for the revert:21:31
git revert -m 509e34fc458bae4c5af70558f82f2714fe8c27d3 6edff054e4920bc7d6de3f7d142207fa33ce542c21:31
sunblush left21:31
kalperin i think i'm referring to those revs incorrectly21:32
MarcWeber Which is the easiest way to check wether the working directory is clean?21:32
bremner MarcWeber: git status?21:32
MarcWeber bremner I'd like to use it within a script. &> /dev/null and check exit status?21:32
bremner git status -a > /dev/null21:32
err, check the -a21:33
hax0r1337 joined21:33
bdiego left21:33
bremner afaik, that's the way21:33
leanucci_ left21:33
LiamH left21:34
hax0r1337 left21:34
kalperin how can i tell which parent is m1 and which is m2?21:35
wmoxam left21:35
doener kalperin: -m takes a number to identify the parent, first parent, second parent and so on, not the actual parent21:35
bremner MarcWeber: I _think_ -a doesn't treat no changes as a an error21:35
kalperin thanks doener. how can i tell which is 1 and which is 2?21:36
doener kalperin: using --parents with "git show/log/rev-list/..." should show them in the right order21:36
kalperin excellent, thanks21:36
doener kalperin: or just do "git show $commit^1", "git show $commit^2"21:36
kalperin: the ^n syntax selects the nths parent of the commit21:36
eletuchy left21:37
Tuomas left21:38
benn_d left21:40
stephenjudkins left21:41
RaySl left21:42
mfilipe left21:43
kraymer left21:43
krh_ left21:43
MarcWeber doener: :-) Thank you! -a is fine21:44
doener MarcWeber: bremner21:45
neoeinstein joined21:46
RaySl joined21:48
doener MarcWeber: but as you pulled me into the discussion, I'd probably avoid using "git status" in a script, especially since there were some discussion about changing "git status" from being a "git commit" dry-run21:49
MarcWeber: using the "update-index -q --refresh" and "diff-files --quiet" or so is probably better/more future-proof (i.e. use plumbing for scripting)21:51
antoranz left21:52
raydeo left21:53
loincloth left21:53
raydeo joined21:53
MarcWeber doener Thanks. I've taken a note. I'll dive into this later then21:54
j416 left21:54
doener MarcWeber: There should be plenty of examples in the git commands that are shell scripts, e.g. git-rebase21:55
boto_ joined21:56
ashleyw_ left21:56
bremner_ joined21:58
tclineks when i git svn rebase from a branch tracking an svn branch it tries to pull trunk commits onto my branch22:00
doener tclineks: you probably merged trunk22:00
... to your branch22:00
tclineks is git rebase (svn branch ref) the right thing to do?22:00
:/22:01
tobbez left22:01
doener rebase linearizes history22:01
tclineks i thought it just looked for the most recent commit with a git-svn-id line22:01
HG` left22:01
doener tclineks: let's say you have branch "foo", and remotes/foo is the corresponding remote tracking branch for the svn branch22:01
then "git svn rebase" fetches stuff from svn updating remotes/foo22:02
flaguy48 joined22:02
doener and then does "git rebase remotes/foo"22:02
the "full" form of that command is: "git rebase --onto remote/foo remotes/foo foo"22:02
leanucci joined22:02
tclineks hm22:02
RodP2 left22:02
doener and it takes all commits from the range remotes/foo..foo, "replays" them onto remotes/foo and makes "foo" reference the result22:03
now, if you merged "trunk" to "foo" after your last dcommit, that merge commit will be in that range remotes/foo..foo22:03
and so are all the commits from trunk's history that you merged22:04
tclineks i don't think i have trunk merged22:04
doener and as rebase linearizes history, it doesn't keep that merge commit, but just the commits from the merged history22:04
tclineks: did you finish the rebase? or did you abort it?22:05
tclineks aborted22:05
leanucci left22:06
leanucci joined22:06
doener tclineks: ok, what's the local branch head, and what's the corresponding remote tracking branch for the svn branch?22:06
tclineks foo and svn/releases/foo22:07
hugoxrosa left22:07
ashleyw joined22:07
doener ok, then "git rev-list --parents svn/releases/foo..foo | grep '.\{82\}'" should tell if there are any merge commits in the to-be-rebased history22:08
Casan left22:08
jceb joined22:08
rektide_ joined22:09
patrikf left22:09
hachi I'm still having some issues with my brain and bare repos... pardon if someone feels like they already explained it to me22:09
even on a bare repo git seems to create a 'master' for me... and have it pointing somewhere22:10
and it's not pointing at anything meaningful, but then if I use gitweb on the bare repo22:10
boto left22:10
hachi it reports where master is... not where the latest commits are22:10
does anyone have advice for dealing with this sort thing... what I'm supposed to do?22:10
tclineks doener: no output22:11
hugoxrosa joined22:11
tclineks there are refs listed though (just no merge commits)22:11
hachi rather, is there a way I can get HEAD to point to the newest commit, regardless of branch ?22:11
sfwc left22:12
kalle_ left22:12
doener hachi: no, and you'd have to define "newest" anyway. The last pushed one? The one with the latest commit date? The one with the latest author date? Something else?22:12
hachi :\22:12
bremner__ joined22:13
kalle_ joined22:13
bremner_ left22:13
hachi this is a bare repo purely to allow others to clone from it, so I don't think there's any 'push'22:13
doener hachi: and it would lead to "interesting" behaviour, as HEAD determines the "primary" branch of a bare repo22:13
hachi oh22:13
it does?22:13
okay, then... can I safely have HEAD refer to a remote?22:13
agile left22:13
hachi and if not... how can I move master?22:13
doener ehrm, a remote? You can't reference a remote, that's a config entity22:14
hachi since I can't use 'reset', without a working tree22:14
no, I mean a remote branch22:14
cxreg update-ref22:14
LotR hachi: maybe you have to step back and explain why it is you think you want these things22:14
gilimanjaro joined22:14
doener hachi: HEAD is used e.g. by "git clone" to determine which branch to create22:14
hachi: if the bare repo has HEAD referencing refs/heads/master, the clone will have a local branch head "master"22:14
hachi okay22:15
doener hachi: if it references refs/heads/foo, "git clone" will create "foo" instead22:15
hachi LotR: I have these git-svn clones that I want to be able to clone out to places easily22:15
they're bare repos22:15
drizzd_ doener: well, it's still master, but it points to origin/foo22:15
doener drizzd_: no22:15
hachi but when I do a fetch on them, the 'master' isn't updated... and I can't call 'rebase' because it has no working tree22:15
doener hachi: ah, git-svn, that creates "master" after each fetch, if it doesn't exist yet22:16
hachi yes, but now 'master' is stuck someplace in the past22:16
wshimmy left22:16
hachi so I need to move master after I do each git-svn fetch22:16
IE, I need to rebase22:16
maybe that's all I should be doing22:16
leanucci_ joined22:16
hachi rebasing22:16
drizzd_ doener: my bad22:16
leanucci left22:17
hachi does git-rebase require a working tree?22:17
km2 left22:17
doener hachi: no... if you don't need master, I'd rather drop it after each fetch, less confusion22:17
hachi yeah, but I'm better off having it exist22:17
wshimmy joined22:17
doener hachi: how so?22:18
hachi that way people dont end up on a random branch when they clone22:18
I can force them to be on 'trunk' (the subversion concept) when they clone from me22:18
by default22:18
doener hachi: git symbolic-ref HEAD refs/heads/trunk22:18
neoeinstein left22:18
hachi okay, yeah22:18
leanucci joined22:19
hachi except it's refs/remotes/trunk, isn't it?22:19
I'm trying this out now22:19
doener hachi: wait a second22:19
hachi oh wait22:19
nealinux joined22:19
hachi you're saying... make a local one called 'trunk' and have it follow remotes/trunk22:19
I think22:19
bleythingbleything|away22:20
cxreg remotes/[remote name]/trunk22:20
bleything|away left22:20
bleything joined22:20
drizzd_ I'm not sure what happens if you make HEAD a symbolic ref to something that's not a local branch.22:20
Tricon left22:21
cxreg hilarity ensues?22:21
hachi what do you suspect might break?22:21
drizzd_ I can imagine it will be treated like a local branch.22:21
ciaranm you can do it, but you can't commit iirc22:21
drizzd_ but what if you point it to a tag?22:21
juanjoc left22:22
drizzd_ ciaranm: you actually tried? :-O22:22
ciaranm back in the good old days it was fairly easy to do that accidentally22:22
you could checkout a remote branch without getting screamed at22:22
hachi what happened in the old days if you committed to a remotes/whatever/branch ?22:22
did `pull` break?22:22
botanicus_ left22:23
ciaranm can't remember. i think it stopped you before that point.22:23
try it. you can probably still git checkout remote/blah.22:23
drizzd_ hachi: I'd say "undefined behavior". If you want to mess with the repo like that, please do so at your own risk.22:23
hachi you can22:23
it yells at you22:23
drizzd_: I'm... not too worried though22:23
since this is basically a read only repo22:24
doener hachi: assuming that that repo is a plain svn mirror: http://git.pastebin.com/m1838b28e22:24
sikanda left22:24
absentia joined22:25
doener hachi: damn, I missed the symbolic-ref step, this should be complete: http://git.pastebin.com/m75455cf22:25
absentia does git just arbitrarily ignore files? I just can't get git to see/add www/run and www/logs22:25
I've tried erasing the dir22:25
adding it again22:25
adding the individual file22:25
removing the files22:25
renaing the files22:25
doener absentia: empty directories? git doesn't track directories, just files22:26
absentia yes, empty22:26
can I tell it to f'n track empty dirs?22:26
toad_ joined22:26
hachi where does gitweb read the 'Last Change' from?22:26
now, after making these changes to a repo22:26
it still says my Last Change was weeks ago22:27
doener absentia: I'd put a .gitignore containing "*" in them22:27
toad_ what does this mean?: HEAD is now at 15dd668 doh! off-by-one error (with test case)22:27
trmanco left22:27
absentia o, thanks!22:27
hachi oh, I bet... master22:27
absentia left22:27
hachi okay, this makes sense22:27
hacim joined22:27
hacim i'm periodically getting this in my logs: git-daemon: [27289] 'receive-pack': service not enabled for '/srv/gitosis/repositories/crabgrass.git'22:27
doener hachi: what that "recipe" does is using a "proxy" repo for the svn fetching22:27
kate21de left22:27
hachi doener: yeah... like the git-svn docs22:27
hacim what is causing that, what is receive-pack service do I want receive-pack service enabled?22:28
hachi that's a large part of what I'm doing22:28
doener hachi: and the "push" part makes the refs/remotes/* appear as refs/heads/* in the bare repo22:28
hacim i guess receive-pack is an anonymous push?22:28
doener hachi: so setting HEAD and cloning "just works", no hassle for the users22:28
hachi thanks doener, I'll poke at this more22:28
toad_ is trying to switch from svn to git, a dev built a script, it just quit out, i don't know at what point it quit out, but backing up the imported repo and running the commands it was supposed to run gives that error ...22:28
raydeo left22:28
LotR left22:29
doener hachi: no, the git-svn manpage puts the work on the users cloning your repo, they have to modify the fetch refspec for their remote22:29
toad_ script for importing the repo from svn (this seems to have worked), and then splitting it up into separate repo's for each subproject (this has definitely not worked)22:29
hachi oh.... oh wow22:29
willb left22:29
hachi you're stellar22:29
doener hachi: the setup in the pastebin does that work on the server side22:29
hachi thanks for that bit of info22:29
is there an easy way I can change a bare repo to be a... non-bare repo?22:30
hmm, maybe I should just keep it bare22:30
do you just mv the stuff into .git and `checkout` ?22:30
doener hachi: there's also a patch on the mailing list that allows git-svn to work on bare repos, putting stuff directly into refs/heads/ instead of refs/remotes, which will makes this stuff a lot easier (no proxy repo needed)22:31
qrush joined22:31
hachi YES22:31
Grum hachi: and remove the line: bare = true from the .git/config22:31
hachi I look forward to that22:31
or I suppose I could apply it right now22:31
drizzd_ doener: what about your fetch refspec hack?22:31
hachi Grum: thank you22:31
Grum and git checkout master ;)22:32
to get a working dir as well ;)22:32
doener drizzd_: hm? Which one? Regarding git-svn, there's a fetch refspec thing in the man page, the recipe I pastebinned uses a push refspec "hack"22:32
hachi git is kinda painful22:32
cause every time I talk to you folks22:33
doener drizzd_: or do you mean something totally different?22:33
bremner__ left22:33
hachi which... you are all awesome by the way22:33
drizzd_ doener: what you just described could simply be achieved using git config remote.origin.fetch +refs/heads/*:refs/heads/*22:33
hachi I get an even better way to do things22:33
drizzd_ or not?22:33
doener drizzd_: yeah, on the client side. But that means that each client has to do that. And it doesn't solve the "HEAD problem"22:33
schacon would a library injecting extra data into the commit object be horribly bad? 'encoding' is the only one i can think of that is quite variable. if a library adds extra custom stuff would that break anything in the core git tools?22:34
doener drizzd_: using the "proxy + push" or the git-svn+bare-repo patch, users can just clone as usual, less work for them22:34
Casan joined22:34
toad_ do I have any options apart from starting from scratch without history, or re-running the script with more self-documentation (it will take at least 3-4 hours) ? and what does the error message mean anyway?: "HEAD is now at 15dd668 doh! off-by-one error (with test case)"22:35
qrush left22:35
ikanobori joined22:35
ikanobori is it possible to have git push, push to two repo's?22:35
lhz left22:35
leanucci_ left22:36
drizzd_ doener: sorry, I think I'm too tired for this. I'll get back to you if I still don't get it tomorrow. ;-)22:36
tclineks ikanobori: no, i don't think so22:36
hachi doener: how can I find this patchy patch patch?22:36
I'm... rubbish at finding things that I don't know the name of22:36
Sho_ left22:37
ikanobori tclineks: mrm, sucks :)22:37
tclineks *shrugh*22:38
yann left22:38
tclineks alias it22:38
hachi doener: this patch makes it so I can just change my fetch/branches/tags lines to say refs/heads instead of refs/remotes?22:38
soycamo joined22:38
hachi cause it feels like I should be able to change them right now22:38
doener hachi: http://www.spinics.net/lists/git/msg101188.html22:38
ikanobori oh wait22:38
found it22:38
doener hachi: not sure how that patch works in detail22:38
bgerber joined22:38
hachi ccheers22:38
hugoxrosa left22:39
toad_ if i post my error message again will i get kicked?22:39
leanucci left22:39
Grum git-svn should get a proper 'one time export' function22:39
toad_: use a pastebin somewhere22:39
doener hachi: and you can't just change them to refs/heads right now, because git-svn doesn't check bareness at all, yet. So it prevents you from having fetch "killing" your local branch heads22:39
toad_ for 62 characters?22:40
Grum how many lines? ;)22:40
toad_ if you say so22:40
one line but i already asked twice and ppl ignored me22:40
Grum o.O22:40
doener toad_: that's not an error message, but a status message22:40
Grum just ask again22:40
toad_ doener: even with the doh! ?22:40
doener toad_: the "doh! off-by-one error (with test case)" is the subject line of the commit message of that commit22:40
cmarcelo left22:41
toad_ ah okay thanks22:41
doener toad_: try "git show 15dd668"22:41
toad_ okay ...22:41
well i've got these three commands, any of them could have quit ... git reset --hard HEAD, git checkout git-svn, git reset --hard, git clean -dfx22:42
is it safe to rerun them all? presumably ...22:42
leanucci joined22:42
doener basically, yes, the "reset --hard" drops uncommitted changes, the checkout checks that branch/commit out, and "clean -xdf" removes all untracked files22:43
toad_ thanks22:44
doener so unless you added new changes/files, you already killed everything they might kill22:44
botanicus joined22:44
toad_ okay now it's invoking git-filter-branch badly somehow ...22:44
drizzd_ toad_: maybe you should be talking to the author of the script...22:44
toad_ yeah but he's not around and he's in hong kong so won't be around ...22:44
gilimanjaro_ joined22:45
cyphactor joined22:45
corybantic left22:46
gilimanjaro left22:46
doener tclineks: sorry, got distracted. If that "rev-list + grep" thing produced any output, then those are merge commits (and their parents)22:46
tclineks it didn't22:47
AAA_awright git-gui no longer a command?22:47
I thought it was a seperate program, why is it part of git now?22:47
tclineks i think i must've reset my branch to a trunk commit or something, propbably operator error22:47
doener AAA_awright: "git gui"22:47
tclineks i just reset to the remote ref22:47
AAA_awright I just discovered that22:47
doener AAA_awright: the dashed forms got deprecated in 1.6.022:47
AAA_awright I thought that git-gui was still seperate from the git biniary22:48
nighthwk1 left22:48
scarabx joined22:48
DavidKlein left22:48
cyphactor left22:49
lritter joined22:49
flujan joined22:50
lritter Hello?22:50
toad_ hmmm my git doesn't have filter-branch --prune-empty ...22:50
flujan hello guys, I hava repository with git... I wanna remove a file and checkout it again . how is it possible?22:51
Grum you mean you just want to do a checkout of 1 file? :D22:51
toad_ i'm guessing running the git-filter-branch without --prune-empty will result in a lot of empty commits?22:51
qrush joined22:52
nealinux left22:52
lritter Can anyone diagnose this when I am trying to install a plugin for Rails: sh: git: command not found22:52
22:52
tclineks toad_: totally depends on what sort of filter you apply22:52
gilimanjaro_ left22:53
Grum lritter: that you dont have 'git' in your path?22:53
toad_ git filter-branch -f --subdirectory-filter trunk/website --msg-filter sed "s/\(git-svn-id:.*\)@/\1\/trunk\/website@/" --prune-empty website22:53
parasti lritter: install git...22:53
lritter Ohh, how do I get it in my path?22:53
Grum install it!22:53
toad_ lritter: apt-get install git22:53
lritter I installed git22:53
toad_ lritter: from source code?22:53
lritter yeah22:54
Grum did you install it systemwide? or just make; make install ?22:54
toad_ did you install it or just compile it?22:54
lritter does it have to be in my rails dir or something?22:54
Grum (that is defaultly in the users homedir)22:54
lritter Oh humm, I think I installed it22:54
parasti recompile and reinstall with make prefix=/usr/local22:54
Grum if he has rights to do so22:54
parasti (of course, it's arguably easier to change PATH)22:55
lritter OK, should I delete the existing copy?22:55
hpoydar left22:56
rylar left22:56
Grum delete what from where exactly lritter? :)22:57
lritter Well, git did install but I think it went to /opt/git/bin/git22:57
hachi fatal: HEAD not found below refs/heads!22:58
hachi screams and runs around22:58
soycamo you've lost your head?22:58
hachi :]22:58
yes22:58
nis flujan: could you explain what you expect?22:58
toad_ lritter: export PATH=/opt/git/bin/git:$PATH22:58
lritter: but for a more permanent solution reinstall with a proper prefix22:58
flujan nis: i deleted some files accidentally... need to restore them22:58
hachi I actually can't figure out what this thing is complaining about, but yeah22:59
arohner left22:59
markelikalderon joined22:59
lritter OK, so reinstalling with make prefix=/usr/local will make it happy?23:00
arohner joined23:00
Yuuhi left23:01
hacim left23:01
toad_ normally prefix is a configure option, no?23:02
./configure --prefix=/usr/local23:02
schacon left23:02
toad_ hmmm apparently not in git23:03
nis flujan: you could do 'git show HEAD:foo > foo'23:03
leanucci left23:04
lritter Oh joy! It worked!23:04
Eudoxus joined23:04
agile joined23:04
nomis toad_: when using the source code from svn/git you need to pass all these options to autogen.sh.23:04
Eudoxus If I am a single developer working on a single project locally, is it even worth it for me to bother moving to Git from Svn?23:04
lritter Thanks beautiful IRC peoples!23:05
nomis argls.23:05
sorry. I was under the impression of being in #gimp...23:05
lritter left23:05
madewokherd Eudoxus: I'd say so, just from the ease of setting up/manipulating repos23:06
no need to actually run a git server to use it23:06
nis tango_: --prefix exists here23:07
arohner left23:07
nis rah23:07
toad_: --prefix exists here23:07
toad_ fortunately the tarball is signed by the same key as the kernel, so i can get a clean copy with no trouble23:08
parasti nis: but configure might not exist23:08
nis parasti: create it, then. :-)23:09
parasti: make configure23:09
parasti never know if that's in sync with the Makefile...23:10
joevandyk left23:10
toad_ oooooh, the import script is really working23:11
i think i'll end up with all the subprojects being branches though, i want them as separate repo's, i guess that's trivial to fix23:11
nis flujan: Oh, i've forgotten: 'git checkout -- path' should do the trick too23:12
kalle_ left23:12
flujan nis: thanks for the tip nis23:12
killerchicken joined23:15
kalperin still working on reverting a bad commit pushed to the repository23:15
anyone know what this means: Automatic revert failed. After resolving the conflicts,23:16
mark the corrected paths with 'git add <paths>' or 'git rm <paths>' and commit the result.23:16
there's actually not much information on the google23:16
airtonix joined23:16
toad_ kalperin: it means there were conflicts?23:16
nis kalperin: git status should help you there.23:16
kalperin i can just resolve and commit, right?23:17
killerchicken hey, I have a bare repo that I pushed to my server, and I serve it via gitweb. Ideally, I'd like to use a cronjob to keep it up to date from upstream. I can guarantee that I will never push again, so every update will be a fast forward. How would I achieve that?23:17
Or are there other good ideas?23:17
kalle_ joined23:17
nis kalperin: Normally, yes.23:17
parasti left23:17
nis killerchicken: using a trivial shell script?23:19
killerchicken: what's the problem?23:19
killerchicken I'm not sure how to keep the repo updates.23:19
amahi joined23:19
killerchicken updated*23:19
ajonat joined23:20
davidfetter joined23:20
markelikalderon left23:20
nis killerchicken: add a script in your cron jobs sounds good.23:20
killerchicken erm. The problem is not adding a script. The problem is *what* to put in that script23:20
eletuchy joined23:21
nis killerchicken: exactly what you would do in an interactive session.23:21
killerchicken I don't know what I would do in an interactive session.23:21
nis (with the shebang)23:21
killerchicken Can't you just give me the git command?23:22
That's the only piece I'm missing23:22
qrush left23:22
neoeinstein joined23:22
nis git pull ?23:22
git fetch ?23:22
altrux left23:22
killerchicken git pull cannot work - it's a bare repo23:22
I thought about fetch, but I'm missing some options, I think.23:23
When I use it, my gitweb checkout isn't updated23:23
or rather, not checkout23:23
but the view on the website23:23
davidad left23:23
leanucci joined23:24
qrush joined23:24
nis is 'git log' ok?23:24
(up-to-date)23:24
d0k_ left23:24
killerchicken no23:24
When I fetch, it says " * branch HEAD -> FETCH_HEAD"23:25
I just want it to update whatever I have.23:25
peff joined23:25
Eudoxus left23:26
cpg left23:27
rektide_rektide23:27
KwikkSilva joined23:28
leanucci left23:29
JohnnyL joined23:29
btanaka left23:30
ocornu left23:30
Eridius left23:30
cpg joined23:30
leanucci joined23:31
leanucci left23:31
stephenjudkins joined23:31
woei left23:33
stephenjudkins left23:33
Ryback_ left23:34
octagon_octagon23:35
markelikalderon joined23:36
amahi left23:38
seangrove joined23:40
jmatthews_ joined23:40
gauge left23:41
jmatthews_ left23:41
km2 joined23:42
hachi doener: whenever I do that 'git push bare' like you suggested for the svn bare stuff23:44
it claims to be creating a whole slew of new branches... roughly all of them23:44
dfr|workdfr|noob23:44
hachi rerun it immediately, and it says it's creating new ones again23:45
something seems... off23:45
k0001 joined23:45
nis left23:45
dfr|noobdfr|work23:47
SRabbelier left23:49
juanjoc joined23:50
stephenjudkins joined23:51
RaySl left23:54
Leemp joined23:56
Eridius joined23:58

Logs Search ←Prev date Next date→ Channels Documentation