IRCloggy #git 2011-06-09

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.

2011-06-09

budsondixon left00:00
Pupeno joined00:01
ralc left00:02
angelsl joined00:03
budsondixon joined00:04
flowbee joined00:05
banisterfiend left00:05
flowbee how do i add all modified (previously commtted files) to the index00:06
segher joined00:06
stepnem joined00:08
AntelopeSalad left00:09
budsondixon left00:09
canton7 add -u00:09
(or commit -a)00:09
add . works as well for the current dir. subtle differences though, look em up00:10
also add -A if you want to delete stuff as well, tho i'd advise against it00:10
banisterfiend joined00:10
tvw left00:10
f0i left00:12
banisterfiend left00:12
AntelopeSalad joined00:13
budsondixon joined00:13
ceej left00:13
gusnan left00:13
saschagehlich left00:14
offby1 huh, what's the risk there?00:14
gebbione left00:14
kenichi left00:14
notslad left00:15
normanrichards joined00:16
fedesilva left00:16
budsondixon left00:17
canton7 i'm trying to remember... it might have been on the mailing list someone was talking about removing it at some point?00:18
offby1 reading the man page now00:19
ISF_ joined00:19
cesario left00:20
Agos left00:20
pdtpatrick__ joined00:20
ns5 left00:20
ns5 joined00:20
ns5 is it possible to check out a copy of sources files from a remote repo? .git dir is not needed, only the source code00:21
canton7 you can clone the repo with --depth of 1 if you want, but you're using git for the transfer, therefore git repos have to be involved00:21
budsondixon joined00:22
ISF left00:22
pdtpatrick__ how can u see the files that were last checked in?00:22
canton7 define "checked in"?00:22
pdtpatrick__ committed00:23
canton7 so the files that were in the last commit? git show00:23
pdtpatrick__ lets say files were committed last week and that was the last commit. How can i see what those files were ?00:23
canton7 my bad, that's the diff, not the actual files.00:24
actually that's what you wanted isn't it? the changes that were committed?00:24
canton7 is getting a bit too tired for this00:24
darknop joined00:24
pdtpatrick__ found it00:25
git log --stat --summary00:25
arpegius joined00:25
darknop how do I get just the contents of this bluecurve-gtk-themes directory under the livecd branch?: http://git.fedorahosted.org/git/bluecurve-gtk-themes00:25
arpegius how can i ignore a directory's contents but not the directory itself?00:25
canton7 arpegius git doesn't track directories00:25
arpegius *.* and * and foo/* all seem to include the directory foo00:25
towski left00:26
arpegius ah00:26
canton7 stick a .gitignore in the directory, though, and track the .gitignore00:26
budsondixon left00:26
canton7 pdtpatrick__ git show and git log are much of a muchness in this regard00:27
urkud_ left00:27
PHadm joined00:27
jfkw left00:28
canton7 darknop git clone --branch livecd git://git.fedorahosted.org/livecd00:29
ChanServ set mode: +v00:29
canton7 ignore that extra whitespace00:29
urkud_ joined00:29
Murr left00:29
canton7 darknop there doesn't appear to be a livecd branch though? so the command i gave you will fail00:30
PHadm is there a way to undo a git fetch?00:30
canton7 PHadm why would you want to?00:30
budsondixon joined00:30
darknop git://git.fedorahosted.org/livecd00:31
PHadm is that a "no"00:31
darknop isn't thta the livecd branch?00:31
http://git.fedorahosted.org/git/?p=livecd;a=summary00:31
canton7 darknop, looks like a repo to me. you can see the branches in the repo at the bottom, under "heads"00:32
serverhorror left00:32
canton7 darknop so git clone git://git.fedorahosted.org/livecd00:32
offby1 PHadm: mostly "no".00:32
PHadm: why would you want to, anyway?00:33
canton7 darknop scrap that, git clone git://git.fedorahosted.org/bluecurve-gtk-themes00:33
banisterfiend joined00:33
PHadm because the dev company we were using is supposed to be cleaning up a bit of a mess. If I fetch now and it introduces meyham, I want to step back and wait for them to finish housecleaning00:34
canton7 offby1 can't find that reference, so i'm going to go back on what i said about add -A00:34
budsondixon left00:34
offby1 phhow could a fetch introduce mayhem? Are you confusing "fetch" with "pull"??00:35
canton7 PHadm copy/paste the .git dir? :P00:35
PHadm at its worst, a git fetch will fetch tons of objects that might be completely useless, and just take up space. they'll get pruned eventually though, so no lasting damage00:35
PHadm I like that idea!!!!00:36
canton7 PHadm sometimes the old-school solutions are the best :)00:36
PHadm so true canton7!00:37
diegoviola old-school++00:37
xiangfu left00:37
pdtpatrick__ is there a command to run to tell u where the .git/conf file is ?00:37
canton7 one of the first things that convinced me that git >> svn was you could copy-paste your repo locally before a potentially screwy operations and you were completely safe00:38
offby1 eww00:38
pdtpatrick__: git rev-parse --git-dir00:38
offby1 joined00:38
budsondixon joined00:39
bremner canton7: copy-paste?00:39
offby1 left00:39
offby1 joined00:39
canton7 yeah should have cloned it, i know. these were early days00:39
offby1 he's translating it into language that Da Yoot can understand00:39
bremner so, like, you totally tweet .git00:40
PHadm left00:40
chessguy left00:40
offby1 tewtally00:41
canton7 heh, if you can stop me strangling twitter first00:41
Pupeno left00:42
canton7 one guy i helped on here decided to express his gratitude by tweeting about it. seriously. now my nick appears on twitter :(00:42
mcluskydodallas left00:43
budsondixon left00:43
canton7 left00:47
blackboard left00:47
budsondixon joined00:47
blackboard joined00:47
blackboard left00:48
centipedefarmer_ joined00:48
fedesilva joined00:50
offby1 aw00:50
brian_g left00:50
Opettaja joined00:51
budsondixon left00:51
c00kiemon5ter aaw00:52
Yuuhi left00:52
saschagehlich joined00:53
sterlo joined00:54
SimonP86 left00:55
cooloney joined00:56
budsondixon joined00:56
squiggy left00:57
shiba_yu36 left00:58
blorbx left00:59
budsondixon left01:00
centipedefarmer_ left01:01
centipedefarmer_ joined01:01
SomeGuy left01:03
Ownatik joined01:04
budsondixon joined01:04
budsondixon left01:05
budsondixon joined01:05
dnuke left01:06
farktronix joined01:08
milli joined01:09
normanrichards left01:09
budsondixon left01:09
freelock left01:10
pdtpatrick__ left01:11
t3i joined01:12
amerine_ joined01:12
chrisdev left01:13
ns5 left01:13
tearsong joined01:13
budsondixon joined01:14
xiangfu joined01:16
RobertLaptop left01:16
sitaram that's not gratitude, that's gratitude 2.0 ;-)01:16
tearsong left01:18
jfkw joined01:19
tearsong joined01:19
Rogi_ joined01:19
shiba_yu36 joined01:20
johnw left01:21
towski joined01:21
tjholowaychuk left01:22
ColKurtz left01:22
chrisdev joined01:23
Rogi_ left01:23
evorocks joined01:23
Rogi left01:23
towski left01:24
berserkr left01:26
DrDogwelder joined01:26
ksawicki left01:26
DrkShadow left01:27
chrisdev left01:27
dan23232 left01:27
xenoterracide joined01:27
tearsong left01:28
xenoterracide how would I cherry-pick from commit X to the tip of that branch01:28
kpreid left01:29
SavoSuperCool joined01:29
tearsong joined01:29
mr_mustard left01:29
banisterfiend xenoterracide: git cherry-pick <commit X>01:30
normanrichards joined01:32
xenoterracide yeah but I was pretty sure you can do a range of commits01:32
t3i left01:33
hyperair left01:34
drev1 left01:35
LekeFly left01:35
banisterfiend xenoterracide: if you want ot do a range of commits then use rebase --onto01:36
mcluskydodallas joined01:36
spearce left01:36
dbgster joined01:36
qwp joined01:36
qwp i dont git git01:37
git it?01:37
gavin_huang joined01:38
ajt joined01:40
Vampire0_ joined01:40
Vampire0 left01:41
__name__ left01:41
DoctorDarren left01:41
dr_win left01:43
glaksmono_ joined01:43
glaksmono_ guys, how do you create a branch from the master repo?01:44
bindaas joined01:45
dr_win joined01:45
ries glaksmono_: git branch someBranchName01:45
git checkout someBranchName01:45
offby1 left01:48
kst left01:48
Dr4g left01:49
kst joined01:49
drev1 joined01:51
bonhoffer joined01:52
alberto56 left01:53
tystr left01:54
dnuke joined01:54
glaksmono_ left01:54
webPragmatist joined01:54
centipedefarmer_ left01:55
webPragmatist left01:55
tearsong left01:57
dwmw2__ joined01:59
offby1 joined01:59
dwmw2_ left01:59
boaz left02:00
boaz joined02:01
hyperair joined02:01
mcluskydodallas left02:02
DarkHouse joined02:03
german__ left02:05
ap3mantus left02:05
jamison joined02:05
kukks left02:06
ap3mantus joined02:06
neurogeek joined02:08
darknop left02:09
erlnoob joined02:10
boaz left02:10
f0i joined02:10
boaz joined02:10
dbgster left02:10
neurogeek Hi all, question: I have a bare repo, served using apache+dav. Im trying to setup the post-receive email hook, but the hook is not being executed. Do I have to set some other variables in the config?02:11
besides the [hooks] section?02:11
boombatower joined02:11
boombatower left02:11
boombatower joined02:11
urbanmonk left02:12
thomas_b left02:13
cehteh neurogeek: chmod +x it?02:14
_VVSiz_ joined02:14
neurogeek nah, the perms are good02:14
boaz left02:14
minter joined02:14
boaz joined02:15
erichammond left02:15
ki__ left02:15
banisterfiend left02:16
kst left02:16
bitkiller left02:16
zwick joined02:16
hobodave joined02:16
kst joined02:16
ChanServ set mode: +v02:17
thomas_b joined02:17
pyrony left02:17
minter Hi folks - I have a corrupted git repository that I can't seem to recover from. Anything I try to do, I get a "failed to read object" error that I can't seem to work around.02:17
VVSiz_ left02:18
minter left02:19
minter joined02:19
ceej joined02:19
bonhoffer i am playing with branching for the first time -- i switched branches and played around with files, but when i go back to master, the files are still modified, when i do checkout i get a bunch of lines like: M test/test_helper.rb02:19
ChanServ set mode: +v02:19
bonhoffer i thought when i checked out the previous branch, my modifications wouldn't be there02:19
minter Sorry, xIRC was being weird. If anyone replied to the problem with "failed to read object" I missed it.02:20
minter:(git)teamsnap.broken[master]/$ git co user_files_paperclip fatal: failed to read object 4406bafc1128e184fe002b68fa347faf79ea795f: Invalid argument02:20
orospakr joined02:20
tshauck joined02:21
minter Any ideas on how to recover from that "failed to read object" error?02:23
slavyXS joined02:23
saschagehlich left02:24
banisterfiend joined02:27
sebersole joined02:28
SavoSuperCool left02:29
fakewaffle joined02:29
\yrlnry joined02:29
SavoSuperCool joined02:29
mkanat left02:30
dfr|mac joined02:30
zwick left02:31
sebersole left02:32
vivekp joined02:33
RobertLaptop joined02:33
RobertLaptop left02:36
silouck joined02:36
RobertLaptop_ joined02:36
silouck i have done some cahnges in the local git repo, but i wold like to have all like its in master, how can i do?02:36
kpreid joined02:39
minter left02:40
intripoon_ joined02:40
neurogeek left02:41
orospakr left02:42
orospakr joined02:42
pyrony joined02:42
kpreid left02:43
kpreid joined02:43
intripoon left02:43
dreiss left02:50
normanrichards left02:51
Ownatik left02:54
antw left02:54
jrock20041 joined02:56
jrock20041 Is it possible to merge an existing svn repo into an existing git repo?02:56
banisterfiend left02:57
hobodave left02:57
banisterfiend joined03:00
vivekp left03:00
budsondixon left03:01
cooloney left03:01
jwmann joined03:02
cooloney joined03:03
orospakr left03:04
offby1 left03:04
orospakr joined03:04
normanrichards joined03:04
mgaunard left03:05
caseymcg1 joined03:06
SethRobertson jrock20041: permaently (never going back to svn?)03:09
jrock20041 SethRobertson: I have one repo I would like to go back to but more likely never03:10
DrDogwelder left03:11
SethRobertson I would say use git-svn to import into git, then you can use `git-subtree merge' or `adding the was-svn repo as a remote and merge or create local branches'. Going back...much more challenging03:12
jrock20041 I got the ones moved over from svn that the git repo was empty but all that is left are ones where both are not03:12
sebersole joined03:12
SethRobertson I don't understand that03:13
jrock20041 oh so I could do like I did for moving them to empty git, I just need to do the git-subtree merge03:13
gretch joined03:13
SethRobertson yes03:13
stliu joined03:14
jrock20041 I do not have a git-subtree03:14
command03:14
let me google that for a mac03:14
SethRobertson It is a technique, not a command03:15
google is the right choice03:15
banisterfiend left03:15
jrock20041 oh03:15
chrisf technically, a merge strategy [-s subtree]03:15
man git merge03:15
jast *automatic message* the 'git-merge' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-merge.html03:15
dl9pf joined03:16
dl9pf_ left03:17
jrock20041 Hmm this might be harder than I think03:18
So I am in the directory that I cloned the files for my git repo03:18
I did the git svn command that brought in the information from the svn repository03:19
mipata_1 joined03:19
jrock20041 Now when I brought the svn stuff in, I did not put it to a branch03:19
sterlo left03:19
oc80z left03:20
mgaunard joined03:20
oc80z joined03:21
preflex left03:21
m0 joined03:24
jrock20041 Should I have brought in my svn stuff into a branch?03:24
offby1 joined03:24
SethRobertson It should be on a local git branch, yes03:24
offby1 left03:25
jrock20041 ok so there is my mistake03:25
banisterfiend joined03:25
veganadian left03:25
pyroscope left03:25
Zygo joined03:25
preflex joined03:26
banisterfiend left03:26
muratux joined03:26
versatiletech joined03:26
caseymcg left03:26
sterlo joined03:27
sterlo left03:27
diegoviola left03:30
Ryback_ left03:31
candybar joined03:31
hyperair left03:32
budsondixon joined03:32
jrock20041 So I would then run: git merge -s subtree branchname03:33
banisterfiend joined03:34
qwp left03:34
aef left03:34
chrisf jrock20041: most likely that is all you will need, yes.03:34
jrock20041 Just tried and it did not work03:35
offby1 joined03:35
mandric left03:35
offby1 left03:36
offby1 joined03:36
banisterfiend left03:36
dan23232 joined03:36
bonhoffer left03:37
pyrony left03:37
dreiss joined03:37
jrock20041 Well I guess I will try again tomorrow. Thanks for all the help guys03:37
jrock20041 left03:37
aef joined03:38
ries left03:38
mandric joined03:38
fcuk112 left03:39
banisterfiend joined03:39
Transformer joined03:39
herdingcat joined03:40
xerora joined03:41
ceej left03:42
Transformer left03:43
corra joined03:45
krz joined03:45
caseymcg1 left03:46
bbrandon joined03:47
secretrobotron joined03:49
secretrobotron i seem to be having a bunch of trouble with submodules03:49
anyone care to help?03:49
versatiletech I'm trying to figure out a workflow for the following situation. I have a large group of HTML files for a website. At the current stage it just has filler text. I want to start working on the same set of files to insert content from word docs. At the same time I'd like to keep the first group of files separate. I don't know if a branch for this makes sense. Then I'd like to keep the files I'm adding content to separately. I may have fixes to the CSS o03:50
HTML that I might do on either group of files, and may add or remove files. I'd like both groups to be synchronized, so if I make a change to the CSS in the filler'd text group, I'd like to merge those changes to my HTML with content group. Any ideas?03:50
Merwin joined03:51
Corren joined03:51
Corren left03:54
hyperair joined03:54
RobertLaptop_ left03:55
versatiletech Or should I just have the two groups in two different folders and use a diff program to keep them in sync and just commit both folders to the repo?03:55
SethRobertson secretrobotron: My advice is that submodules suck and you will find it much easier to think about and use gitslave, though it is not always better for some workflows. But don't ask about asking, just ask03:55
RobertLaptop joined03:55
project2501b joined03:56
secretrobotron SethRobertson: i've had some recent trouble with them. we've been trying to add a submodule in place of a directory that was there by the same name03:56
now, conflicts when merging are... impossible to overcome03:56
SethRobertson versatiletech: If you will not be changing the filler text, branches and merging sounds good for you03:56
secretrobotron git simply says "error: unable to index file xxxxxxxx"03:57
when i try to add it03:57
SethRobertson secretrobotron: You have a path which is a submodule on one branch and a directory on another? Yes, that is going to cause problems.03:57
ExtraSpice joined03:57
SethRobertson I would suggest making it a submodule on the branch as well. It can be a different branch in the submodule03:58
versatiletech SethRobertson: well in the second group of files the filler text would be replaced with real content. Does that mean if I use the branching method, I'd get a crap load of conflicts each time I merge the filler text'd branch?03:58
secretrobotron SethRobertson: i didn't think of that03:58
make it a submodule on the branch first03:59
wlil try. hold on03:59
bronson left03:59
SethRobertson versatiletech: Treat the fillter text as the branch and the real text as "master". Merge from fillter to master. As long as you do not change the fillter text, you will not have any conflicts03:59
secretrobotron: No guarantees of me still being awake.03:59
caseymcg joined04:00
erlnoob left04:01
secretrobotron that's ok, trying now :) thanks for the idea04:01
Corren joined04:02
Corren left04:03
budsondixon left04:03
OOPMan left04:04
cytrinox_ joined04:05
Anxi80 joined04:05
slavyXS left04:05
cytrinox left04:06
cytrinox_cytrinox04:06
jmcantrell what's the best way to export the latest revision to a directory?04:08
troyt left04:08
mipata_1 left04:09
_grepper left04:09
troyt joined04:09
project2501b left04:09
budsondixon joined04:09
diegoviola joined04:10
secretrobotron SethRobertson: thank you kindly :) seems to have worked.04:10
so... so strange.04:10
versatiletech SethRobertson: ok, so lets say I did a CSS bug fixes to the branch, and a couple of HTML structural changes. Master has the same files but with real content (different images, copy, etc). Let's say that on master I also make changes to the CSS file so now both the CSS file in both branches have diverged. How would I handle merging in the CSS changes in to master?04:10
secretrobotron jmcantrell: git clone, delete .git file?04:10
\yrlnry cp -r, delete .git file?04:10
Savoxis joined04:10
Savoxisis04:11
_grepper joined04:12
mandric left04:12
tshauck left04:12
cooloney left04:13
pen_ joined04:14
chx joined04:14
pen_ left04:14
quuxman how do I email the commit message in the post-commit hook if the script receives no parameters?04:14
chx what would be the best way to revert an old commit? i mean i can do git show abcde |patch -p1 but that aint elegant.04:15
*Rp104:15
quuxman chx: wouldn't that be just `git checkout VERSION`04:15
fedesilva left04:15
chx quuxman: i want to keep all commits just revert one.04:15
quuxman ah, yes, that would be nice04:16
\yrlnry if the one you want to get rid of is the most recent, just use git reset --hard HEAD~1.04:16
secretrobotron left04:16
\yrlnry If you want to get rid of one that is not the most recent, git-rebase -i is probably the easiest way.04:16
_grepper left04:16
chx uh04:17
versatiletech_ joined04:17
chx even if it's say 20-40-100 commits ago ?04:17
http://www.kernel.org/pub/software/scm/git/docs/git-revert.html isnt this what i want :) ?04:17
dnuke left04:17
eletuchy left04:17
\yrlnry Probably.04:18
pyrony joined04:18
versatiletech left04:19
versatiletech_versatiletech04:19
[intra]lanman left04:19
chx thanks :)04:20
chx left04:20
quuxman anyway, seems natural to have the commit message easily available from the post-commit hook, but I can't find it in the docs, or a decent example post-commit04:20
ki__ joined04:21
OOPMan joined04:23
juangiordana left04:24
Behi joined04:27
HaydenMuhl joined04:27
bolt joined04:27
leo2007 joined04:28
selckin think the first arg is a file with it?04:28
erichammond joined04:28
caseymcg left04:29
sangi joined04:31
slavyXS joined04:31
\yrlnry left04:39
ki__ left04:40
versatiletech left04:42
quuxman that's for pre-commit04:42
sebersole left04:42
quuxman selckin: post-commit has no params04:42
e6nian joined04:43
quuxman oh duh... I could just use the pre-commit hook04:43
cooloney joined04:43
e6nian how to update a bare git repo?04:43
pyroscope joined04:43
e6nian git fetch only fetch the refs of the repo04:44
fedesilva joined04:46
fakewaffle left04:47
dr0id joined04:47
mikepack joined04:51
xiangfu left04:52
dfr|mac left04:52
preflex left04:53
amerine_ left04:56
stringoO left04:58
kst left04:58
akent joined04:58
Opettaja left04:58
kst joined04:58
preflex joined04:59
dfr|mac joined05:01
caseymcg joined05:03
slavyXS left05:04
ThomasLocke joined05:04
Lenoj joined05:06
leo2007 left05:07
ChanServ set mode: +v05:07
banghouse joined05:07
e6nian git reset --soft refs/remotes/origin/master not working05:08
why?05:08
fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.05:08
nevyn^_ joined05:09
dnuke joined05:09
lunks left05:10
lunks joined05:11
cesario joined05:15
ISF_ left05:15
gnufied joined05:17
BiggFREE joined05:17
cherro left05:17
madewokherd left05:20
jonshea joined05:21
airborn joined05:21
e6nian left05:21
dfr|mac left05:26
dfr|mac joined05:27
boaz left05:27
kst left05:27
kst joined05:29
subsume joined05:30
boaz joined05:30
mysphyt joined05:30
mysphyt left05:31
krosenvold left05:33
Chibby_ joined05:33
_W_ joined05:34
jwmann left05:35
compnerd joined05:37
TrineLocke joined05:40
troyt left05:40
neverov joined05:40
neverov left05:41
dan23232 left05:41
Zenopus_ joined05:45
Zenopus left05:46
compnerd left05:46
namemon joined05:47
keyo left05:47
compnerd joined05:47
Zenopus joined05:48
slavyXS joined05:49
Zenopus_ left05:49
yarvin joined05:52
workmad3 joined05:53
compnerd left05:55
kukks joined05:55
compnerd joined05:56
lunks left05:58
compnerd left05:59
Deesl joined06:00
dfr|mac left06:01
RobertLaptop left06:02
alnewkirk joined06:02
compnerd joined06:03
thiago_home joined06:03
nevyn^_ left06:03
nevyn^_ joined06:04
HaydenMuhl Oh, man. I didn't know you could merge more than two branches together at once.06:08
KindOne joined06:08
yarvin left06:13
Zenopus_ joined06:14
budsondixon left06:14
Zenopus left06:15
Zenopus_Zenopus06:15
ben225 joined06:16
Maletor left06:16
gkmngrgn joined06:16
gkmngrgn left06:17
tewecske joined06:17
gkmngrgn joined06:17
RobertLaptop joined06:17
budsondixon joined06:19
nevyn^_ left06:20
is left06:21
SavoSuperCool left06:22
is joined06:22
warthog9 joined06:23
dvaskot joined06:25
gkmngrgn left06:25
glaksmono joined06:26
glaksmono guys, how do you create a branch from the master repo?06:26
jutaro joined06:26
Maletor joined06:27
jceb joined06:29
slavy joined06:29
slavy left06:29
JohnBat26 joined06:30
thiago_home glaksmono: git branch name-of-the-branch first-commit-of-the-branch06:30
JohnBat26 left06:30
Maletor left06:32
slavy joined06:32
glaksmono thiago_home: what's first-commit-of-the-branch? ?06:32
is that the master is?06:33
KindOne trying to "sh ./makexpi.sh" within cygwin, for "https-everywhere", I am using Windows with 1.7.4-preview20110204, and I am getting "./makexpi.sh: line 43: git: command not found" with this line 43 "if [ "$1" != "uncommitted" ] && [ -n "$(git status src -s)" ] ; then" any suggestions ?06:33
khmarbaise joined06:33
Fudge left06:34
slavy left06:34
thiago_home glaksmono: it is the SHA-1 of the first commit you want on that branch, or the name of the branch that is at that SHA-106:34
if you want to create a branch that starts at the commit where origin/master is, just type that06:35
slavy joined06:35
slavy left06:35
idoru left06:36
Maletor joined06:36
namemon left06:36
namemon joined06:37
erlnoob joined06:37
SavoSuperCool joined06:38
dreiss left06:38
masterkorp hello, good morning06:39
leo2007 joined06:40
xerora left06:40
khmarbaise left06:40
bkozal joined06:40
thiago_home left06:40
glaksmono thiago_home: so how do i find that SHA-1 thing? can u give example?06:41
can anyone help me? :(06:42
slavy joined06:42
slavy60xs joined06:44
gavin_huang left06:44
xiangfu joined06:45
slavy left06:45
troyt joined06:46
metcalfc left06:49
cbreak_work glaksmono: ask a question06:49
Murr joined06:50
mikepack left06:50
jfkw left06:50
Vile left06:51
Maletor left06:52
cbreak_work glaksmono: just do a git log, and pick the commit that you want to be the newest in your new branch06:52
the new head06:52
workmad3 left06:54
eean joined06:54
idoru joined06:55
budsondixon left06:59
Modius left06:59
yarvin joined06:59
buddybro_ joined07:01
dpino joined07:02
Maletor joined07:02
troyt left07:03
subsume left07:04
ksinkar joined07:05
Fudge joined07:05
radarek joined07:05
budsondixon joined07:06
kukks left07:07
xiangfu left07:08
fedesilva left07:08
SimonNa left07:09
Badiss joined07:11
dvaskot left07:11
tvw joined07:12
airborn_ joined07:13
ben225_ joined07:14
dr0id left07:14
rolfb joined07:14
rolfb left07:14
drev1 left07:14
sangi left07:15
ben225_ left07:15
Lenoj left07:15
sangi joined07:16
slavy joined07:16
ben225_ joined07:17
boombatower left07:17
kukks joined07:20
slavy left07:20
sangi left07:22
sangi joined07:22
buddybro_ left07:22
boombatower joined07:22
slavy joined07:23
legumbre_ joined07:23
mgaunard left07:23
Zenopus_ joined07:24
legumbre left07:25
slavy left07:25
Zenopus left07:25
d0k joined07:25
Zenopus_ left07:28
boombatower left07:29
dnuke left07:29
corra left07:29
Zenopus joined07:30
Tommy[D] left07:30
boombatower joined07:31
Tommy[D] joined07:31
mishok13 joined07:34
eijk joined07:35
frederick joined07:36
ben225_ left07:37
slavy joined07:37
ben225_2 joined07:37
ben225_2 left07:37
ben225 left07:38
slavy left07:38
blast_hardcheese joined07:38
mgaunard joined07:40
jmd joined07:42
slavy joined07:42
slavy left07:43
Fudge left07:43
slavy joined07:44
slavy left07:44
cilly joined07:44
cilly left07:44
cilly joined07:44
ruby_on_tails joined07:45
ruby_on_tails how can i check the repo url ?07:45
git remote shows origin, i want the repo url07:45
namemon left07:45
jmd git remote -v07:45
slavy joined07:46
slavy left07:46
pcav joined07:46
saschagehlich joined07:46
aminpy joined07:47
slavy joined07:47
ruby_on_tails jmd: i want to change it i should use remote rename ?07:47
slavy left07:47
Ricki joined07:48
ricki_ joined07:48
ricki_ left07:48
jmd I normally delete it and re-add it.07:48
ruby_on_tails ok07:48
slavy joined07:48
slavy left07:49
Jippi joined07:50
Murr left07:52
jmd I want to copy (not merge) an entire file from one branch to another. How do I do that?07:53
FauxFaux git checkout branch path/to/file # or git show branch:path/to/file > new/path/to/file07:54
nfr joined07:54
capncodewash joined07:55
Jippi left07:55
Fudge joined07:55
strk joined07:56
nfr left07:56
delx joined07:56
delx Hello07:56
I have creatd a git repository on my server (git init --bare) and I clone it through SSH. It says "It seems you have cloned an empty repository." So far ok. But "git branch" doesn't even show a master branch and I can push at all to my server! What's wrong here?07:56
strk in a git-svn setup (started from just looking at trunk/) can I add a branch tracking a different SVN branch ?07:56
jmd FauxFaux, Thanks07:56
FauxFaux delx: Normal procedure is: git init locally; commit; git remote add origin user@host:path/to/bare; git push -u origin master07:57
cbreak_work delx: empty repositories do not have a branch07:57
NetRoY left07:57
cbreak_work delx: just commit something07:57
(in your clone)07:57
after that, git push as FauxFaux said07:58
you don't need to add a new remote if you cloned07:58
namemon joined07:58
slavy joined07:58
|kukks| joined07:59
delx FauxFaux, cbreak, now the fololowing:07:59
error: src refspec master does not match any.07:59
error: failed to push some refs to 'ssh://git@host/home/git/matrix.git/'07:59
I tried ssh git@host and that works08:00
Badababuba joined08:00
delx and I have write-privileges in /home/git/matrix.git/ !08:00
_VVSiz_ guys, is there a way to enter comments in .config file?08:00
FauxFaux delx: You completely ignored what I said and tried to push from your cloned repository, didn't you?08:00
kristofferR joined08:00
delx FauxFaux, no! I did an init - committed something, added the remote origin and pushed it!08:01
cbreak_work delx: you should read what FauxFaux wrote08:01
how did you push?08:01
SimonNa joined08:01
cbreak_work how did he tell you to push?08:01
do you spot the difference?08:01
delx git push -u origin master08:01
cbreak_work yep. that's the one.08:01
FauxFaux What does 'git status' say the current branch is?08:01
delx I'm not stupid :) I did it the way!08:01
git status -> "On branch master"08:02
kukks left08:02
delx git branch -a -> Nothing08:02
FauxFaux Okay, I'll admit that you probably have an interesting problem, but I have no idea what the solution is. ¬_¬08:02
cbreak_work did you do something stupid like git init in an existing repo?08:02
jmd cbreak, Of course he didn't. He just said that he ISNT stupid.08:03
cbreak_work I am a genius and I still do stupid things.08:03
it's just that I am usually able to fix them :)08:04
_VVSiz_VVSiz08:04
SimonNa left08:04
dwmw2___ joined08:05
jmd That's ironic, because I'm stupid, but I do ingenious things.08:05
dwmw2__ left08:05
davzie joined08:06
dr0id joined08:06
f0i left08:06
delx left08:07
cilly left08:08
Spockz left08:09
PigeonFriend joined08:09
boombatower left08:09
OOPMan left08:11
cbreak_work anyway08:12
just clone, commit, push08:12
that should work08:12
slavy left08:12
Maletor left08:12
delx joined08:14
SimonNa joined08:14
jas4711 joined08:14
delx left08:15
sebbi joined08:15
jatt joined08:17
NetHawk left08:18
Leonidas_ joined08:19
Leonidas_ left08:19
Leonidas_ joined08:19
Leonidas_Leonidas08:19
NoNoNo joined08:19
slavy joined08:20
OOPMan joined08:20
KindOne left08:22
erichammond left08:22
KindTwo joined08:22
gebi joined08:24
KindTwoKindOne08:24
slavy left08:25
KindTwo joined08:25
KindTwo left08:25
KindTwo joined08:25
diegoviola left08:26
KindOne left08:27
KindTwoKindOne08:27
_Qman joined08:31
gebbione joined08:31
ch077179 joined08:34
verto_ left08:36
krosenvold joined08:38
muratux left08:38
slavy joined08:38
jjido joined08:39
Jippi joined08:40
slavy left08:42
d00dlez joined08:42
rendar joined08:42
tatsuya joined08:43
Yuuhi joined08:44
opalka joined08:47
opalka left08:47
opalka joined08:47
verto_ joined08:49
elyob joined08:52
gebbione left08:52
envi_laptop left08:52
g0bl1n joined08:52
pizza_ joined08:53
HaydenMuhl left08:58
Agos joined09:03
curtana joined09:06
deuterium joined09:11
lanthan left09:11
stermi joined09:11
stermi hi all, I'm new to git and I need some explanation09:12
strk left09:12
stermi what does gitolite do? It's an amministrative tool for git? It check for permissions on clone/push?09:12
Jippi left09:12
Jippi joined09:13
Rhonda It is an ssh gate keeper. It helps you administer ssh keys and push permission09:13
dogmatic69 stermi: it sort of allows you to set up a git server similar to github09:13
namemon left09:13
stermi have I to put all my repositories to /home/git/repositories?09:13
FauxFaux Yes.09:13
Rhonda You can configure the path, but besides that, yes.09:14
Actually you configure the path at installation time of gitolite and stop caring about it from there, you don't have to "put" anything in there yourself.09:14
FauxFaux Should get jast to reply to "!gitolite" with "Gitolite is a tool for teaching users how to use and debug problems with ssh keys".09:14
harshu_ joined09:14
stermi ok, so I need to clone gitolite-admin for the new project, modify it, and push on server?09:14
Rhonda Exactly.09:15
stermi so after it, if someone form another pc try to do git clone [email@hidden.address] it will be denied?09:15
hendersonj joined09:16
FauxFaux Unless you grant them access, yes.09:16
stermi sorry for stupid question but I'm trying to understand how to do that :D09:16
jutaro1 joined09:16
jutaro1 left09:17
Rhonda No question is stupid (enough to be laughed at by someone even more stupid)09:17
sitaram stermi: you do *not* need gitolite until you come to the point of managing multiple users and their access to multiple repos09:17
FauxFaux gitolite-admin's config has a list of users that are allowed access.09:17
stermi yes FauxFaux I already installed but I want to be sure about what I tought :D09:18
sitaram, I'm trying to build a good env to develop with my collegues09:18
sitaram ok09:18
stermi and I've bought a VPS ( for also other pourpose ) so I want to restrict access to it :P09:19
sitaram stermi: I suggest http://sites.google.com/site/senawario/home/gitolite-tutorial (this is a good tut that shows gitolite install using the 'non-root' method)09:19
stermi thank you sitaram this let me understand something more about new users and permissions09:20
but I don't get something. How can I create new repos?09:21
with normal git commands?09:21
Rhonda No09:21
You add them to the gitolite-admin's config file.09:21
and push09:21
<stermi> ok, so I need to clone gitolite-admin for the new project, modify it, and push on server?09:21
stermi and who will do changes?09:21
Rhonda You asked that before. :)09:21
jmd left09:22
stermi after the push gitosis will automatically create new repos?09:24
erichammond joined09:24
sitaram I would be very surprised if it did09:25
:-)09:25
selckin gitoLite does09:25
stermi Ok so I don't understand how it work sitaram (thank you for your great tool!)09:25
sitaram stermi: erm that was a joke; you said "gitosis will ..." while talking about gitolite09:25
intripoon_ left09:25
stermi aajjaja09:26
hahahahaha sorry :D09:26
redGoat joined09:26
stermi tomorrow I studied both :P09:26
intripoon joined09:26
dragoonis joined09:28
Rhonda Did you travel back in time to today?09:28
Leemp2 joined09:29
stermi damn I need coffe09:29
dec left09:30
dec joined09:30
shiba_yu_ joined09:32
shiba_yu36 left09:32
dbgster joined09:33
stermi ok last stupid question of the day: if I remove from my gitolite-admin users and repositories, they will be removed and deleted from my server ?09:33
repositories will be deleted ?09:33
jjido left09:33
stermi I mean I don't have to touch my server anymore right? I can do everything editing my gitolite-admin09:33
and pushing changes09:34
Leemp2 left09:34
glaksmono left09:34
brian_g joined09:35
sitaram stermi: search for "deleting a repo" in http://sitaramc.github.com/gitolite (this is the gitolite doc main page/master index; you can browse interesting entries there or search for stuff using Ctrl-F)09:35
babilen joined09:35
antw joined09:36
|kukks| left09:39
stermi I have last question (I don't find it on help page). Is there some problem using gitosis with other tools like tortoisegit for windows? My collegue use it (and windows <.<)09:39
kukks joined09:39
jjido joined09:39
dogmatic69 stermi: i would recommend using git the terminal, and not with silly gui's09:41
albel727 why would it be a problem? (and it's _gitolite_. don't insult it by calling it gitosis).09:41
mishok13 left09:41
NoNoNo left09:41
MonsieurLu joined09:41
stermi damn me another time :D09:41
anyway yes, I was talking about gitolite09:42
albel727 well, the trickest part might be with setting up ssh keys for tortoisegit properly.09:42
stermi dogmatic69, to push changes I will use my own pc with linux and I'll do by command line git09:42
albel727 b/c tortoisegit uses plink, iirc.09:42
mishok13 joined09:42
sitaram stermi: as far as any client is concerned it just uses ssh pubkey based access. It does not even *know* that gitolite is on the server09:42
stermi I was talking about normal git push/clone09:42
albel727 so, you'll have to convert openssh public keys to plink public keys (or the other way round)09:42
stermi thatnk you sitaram anyway I will do some test totday09:42
NoNoNo joined09:43
sitaram stermi: but as albel727 says, putty/plink's keyformats may have some issues. Look in that same master index for "putty"09:43
d0k left09:44
stermi ok09:45
ch077179 left09:45
davzie left09:46
ch077179 joined09:47
jjido left09:48
NoNoNo left09:50
radarek left09:50
LekeFly joined09:51
Zenopus left09:52
dbgster left09:53
Zenopus joined09:53
radarek joined09:56
intripoon_ joined09:58
hyperair left09:58
freshmilk joined09:59
krz left09:59
intripoon left10:00
speakman When having an internal fork of an upstream project, and keep rebasing upon upstream changes - will internal "release" tags pointing to commits not available under any head still be reachable?10:00
FauxFaux Tags are immutable; they'll keep the unrebased bits of the history alive. gitk --all.10:01
pipoun left10:01
mishok13 left10:02
mishok13 joined10:02
speakman FauxFaux: Not sure I really understand10:03
leo2007 left10:04
bremner !cs10:04
jast *automatic message* 'Git for Computer Scientists' explains the basic structures used by git, which is very helpful for understanding its concepts. http://eagain.net/articles/git-for-computer-scientists/10:04
bremner speakman: ^10:04
speakman But since my previous release was my "patchset" upon an older upstream release, and my next release will be my patchset upon a newer upstream release.10:04
bremner: thanks!10:04
VVSiz left10:07
aminpy left10:07
stamina joined10:07
Zenopus_ joined10:08
Zenopus left10:08
Zenopus_Zenopus10:08
speakman bremner: FauxFaux: Something like this: http://pastebin.com/RRYf9ZiS10:08
FauxFaux Yes, that's exactly what happens.10:08
speakman "git gc" won't remove any objects required by myfirstrelease when I've git rebased later on to make mysecondrelease?10:09
(I can see git gc removing objects when there is no references at all to it though)10:09
Which won't be the case as long as my release tags points to it,right?10:10
aminpy joined10:10
FauxFaux Yeah, a tag makes something alive/reachable, as in, not applicable for garbage collection.10:10
speakman great thanks!10:10
ralc joined10:11
speakman so - is this approach (all in all) an acceptable way of maintaining local changes to an upstream project?10:11
Leemp joined10:12
FauxFaux It's what I do, yes. Some people like quilt instead of git but they're heretics.10:13
babilen left10:13
speakman :D10:15
jophish_ left10:17
k-man joined10:18
urkud_ left10:18
mklappstuhl joined10:20
chittoor joined10:22
davzie joined10:22
chittoor left10:22
arpegius left10:23
tore__ joined10:24
slavy joined10:25
SimonNa left10:25
slavy left10:25
ichilton Was speaking to someone from Github at a conference yesterday and asking him about some problems i'm having with git submodules. He advised me to checkout 'lightweight submodules' and described them as submodules done right. However, i'm not finding much with searching for it - any ideas?10:27
fauxhawk joined10:27
michas joined10:27
ichilton there seems to be something called lightweight checkouts, but there doesn't seem to be much info around them either...10:27
bremner ichilton: the only alternative I know about is gitslave, but I haven't heard it called lightweight10:28
marcob joined10:28
ichilton humm ok - thanks10:28
aspotashev joined10:29
ichilton i'm using git submodules to bring the php framework & modules and my core app module into my application repo - but they dont really play nicely with branching...10:29
babilen joined10:31
verto__ joined10:31
intripoon_ left10:32
verto_ left10:33
intripoon joined10:33
Spockz_ joined10:34
djh I'm having an issue with git taking a very long time to do a fetch when it's run via sudo. Only error I can see if I strace it is "Warning: No xauth data; using fake authentication data for X11 forwarding." - anyone know if there's a fix for this?10:34
ch077179 left10:35
Anxi80 left10:35
Anxi80 joined10:35
dr0id left10:35
bremner well, somebody's got to ask. Why sudo?10:35
FauxFaux djh: Unset DISPLAY.10:35
djh bremner: Well, sudo -u user to be more accurate10:35
Fudge hi im getting this message, how do i resolve it fatal: You have not concluded your merge (MERGE_HEAD exists).10:36
FauxFaux Conclude your merge.10:36
Fudge how do i do that FauxFaux10:36
FauxFaux Commit.10:36
dr0id joined10:37
michas Hi, I'm trying to build git on HP-UX. make now complains, it cannot find zlib.h. If I point --with-zlib to the directory containing the correct include directory it does not change anything. what might be my problem?10:38
djh FauxFaux: That does indeed work, ty.10:38
FauxFaux config.log gives more details on why configure failed.10:39
caseymcg left10:41
Fudge thanks FauxFaux10:42
brian_g left10:42
michas configure is not complaining. but I had a typo in the path. now make complains about git-compat-utils.h line239: error 1000: Unexpected symbol ")"...10:42
brian_g joined10:42
namemon joined10:43
FauxFaux djh: Another solution is probably fiddling with xauth or ~/.Xauthority or sudo settings wrt. environment variables, either directly or for ssh-agent etc., but it's all far too much work.10:43
michas does git need a special compiler like gcc?10:43
djh FauxFaux: It does sound that way10:43
FauxFaux It's built with gcc on all platforms, I'm not sure if there's an official statement that patches won't be accepted for other compilers.10:43
redGoat left10:45
stermi left10:46
speakman FauxFaux: what would you think of this approach, to keep the number of internal commits to be rebased as low as possible; http://pastebin.com/9WMsaizq10:46
stermi joined10:46
FauxFaux speakman: Editing commtis as you move them around leads to unhappy, see git clone git://git.goeswhere.com/git/putty.git && cd putty && gitk --all and try and work out what's happened between the rebases.10:48
cjs joined10:49
tore__ left10:50
muratux joined10:51
canton7 joined10:51
muratux left10:52
muratux joined10:52
jophish_ joined10:52
stliu left10:53
muratux left10:53
muratux joined10:54
muratux left10:54
muratux joined10:55
linusoleander joined10:55
dogmatic69 in a pre-commit hook, how can i tell if there is just files being deleted?10:57
cjs left10:58
linusoleander left10:59
leo2007 joined10:59
dr0id left10:59
cbreak_work how about looking at the diff?11:00
namemon left11:01
namemon joined11:01
dr0id joined11:02
dogmatic69 cbreak_work: how would i get that in the hook?11:02
Ownatik joined11:02
jophish_ left11:04
cbreak_work dogmatic69: by running git diff? :)11:05
johnson09 joined11:05
dl9pf left11:05
dogmatic69 cbreak_work: that gives stuff in 'Changed but not updated:' not 'Changes to be committed:'11:05
Sonderblade joined11:06
Spockz_ left11:06
Sonderblade left11:06
Sonderblade joined11:07
antw left11:09
vmiklos joined11:09
antw joined11:09
lanthan_afh left11:10
ramusara joined11:11
bkozal left11:13
dl9pf joined11:14
dl9pf left11:14
dl9pf joined11:14
jophish_ joined11:14
apassi left11:19
apassi joined11:21
harshu_ left11:21
urkud_ joined11:22
banghouse left11:23
yarvin left11:25
apassi left11:27
apassi joined11:29
Kontext joined11:31
Kontext hello ppl11:31
SimonP86 joined11:31
namemon left11:31
Kontext I've made some changes to my local project (git repository)11:31
if i type git status I get this11:31
new file: administrator/compone/ mplampla11:31
Changes not staged for commit:11:31
modified: administrato/ mpla mpla11:32
namemon joined11:32
Kontext then I did a git commit -m "test"11:32
and then I try to update my remote repository (github)11:32
by typing git push grocery master11:32
and I get this Everything up-to-date11:32
FauxFaux Enough context, more point.11:32
aminpy left11:33
Kontext the point is that everything is not up to date11:33
isn't this the right command to update my remote repo11:34
with the changes I've made to my local repo;11:34
Jordano joined11:34
Jordano hi11:34
Bombe Is “grocery” your github remote, Kontext?11:34
Kontext yes11:34
Bombe And has that commit you did gone to the master branch?11:35
Jordano I'm cloning with git the android kernel but it's stucked on Counting objects, can somebody help me to find what's wrong ?11:36
FauxFaux The number has stopped going up, or it's spending ages going up/11:36
Kontext I did a git commit -m11:36
so I believe so11:36
Bombe Kontext, what branch does git status say you’re on?11:37
wereHamster Kontext: what does 'git branch' show you?11:37
Jordano yesterday night was working, but I had to delete everything.11:37
and now it does not download anything11:37
Kontext * master11:37
* On branch master11:37
here's me repo: https://github.com/Agis-11:37
Bombe Kontext, ah, whatever, take a hammer: gitk --all11:37
That should make clear what's happening.11:38
bbrandon left11:38
Kontext i'm not very familiar with git, I get the scren now11:40
herdingcat left11:40
p3rror left11:41
SimonP86 left11:41
Kontext what should I check for?11:41
gretch left11:42
Kontext Local uncommited changes, not checked in to index11:42
master-remotes/grocery/master test11:42
SimonP86 joined11:44
xiangfu joined11:45
Spockz joined11:46
LekeFly left11:46
muratux left11:47
cannonball joined11:49
xiangfu` joined11:49
yarvin joined11:49
xiangfu left11:51
dbgster joined11:52
yarvin left11:54
p3rror joined11:55
rostayob joined11:55
rostayob how can I remove the last commit, preserving the files as they are?11:56
gusnan joined11:56
selckin git reset HEAD^, if i understand you correctly11:56
rostayob selckin: so reset won't touch the files, it would just remove the commig?11:57
*commit11:57
selckin define "the files"11:58
harshu_ joined11:58
selckin it will not remove those changes from the workdir11:58
banisterfiend selckin: it will11:59
selckin: git stash11:59
git stash && git reset HEAD^12:00
rostayob selckin: I've used reset --hard before, and it just reverts everything to the state you were in12:00
selckin well, did i tell you to use --hard?12:00
JohnBat26 joined12:00
urkud_ left12:00
jutaro1 joined12:00
rostayob selckin: no, I just want to be sure that I won't lose data :P12:00
selckin then make a backup first12:01
gavin_huang joined12:01
banisterfiend ah sorry selckin was right12:01
rostayob selckin: yeah I'd like a command that doesn't require me to do that, I'll try reset now12:01
selckin rostayob: if you're unsure, make a backup, should only take a few seconds, good way to learn & try out new things risk free12:01
bkozal joined12:02
rostayob selckin: yeah reset works, thanks12:02
urkud_ joined12:02
shiba_yu_ left12:02
sangi left12:03
NetHawk joined12:05
alberto56 joined12:09
versatiletech joined12:09
Kontext left12:10
rolfb joined12:12
cyphase left12:13
elyob left12:13
SimonP86_ joined12:15
jsick3 joined12:15
banghouse joined12:15
piti joined12:17
SimonP86__ joined12:17
eikaas_ joined12:17
SimonP86 left12:18
eikaas left12:19
jutaro1 left12:20
deuterium left12:20
SimonP86_ left12:20
cherro joined12:21
nazgul101 joined12:22
gusnan left12:24
Ownatik left12:26
_Qman left12:27
mgaunard left12:31
lunks joined12:31
normanrichards left12:31
namemon left12:32
babbos joined12:32
namemon joined12:32
Jdub71 joined12:33
babbos If i want to execute a post-update hook only if a specific branch is pushed what do i do?12:33
aspotashev left12:33
aspotashev joined12:34
jutaro1 joined12:35
jutaro1 left12:35
__name__ joined12:36
__name__ left12:36
__name__ joined12:36
ap3mantus left12:36
akerl joined12:37
Granjow joined12:37
Ownatik joined12:37
Granjow Good morning :)12:37
ap3mantus joined12:37
Granjow I have a project in my git repository which I would like to put into a separate repository now. Is this possible with preserving the directory structure?12:37
patrikf babbos: man githooks, post-update, second paragraph.12:38
jast babbos: *automatic message* the 'githooks' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/githooks.html12:38
replore_ joined12:38
Granjow eh, with preserving the commit history12:38
Fly9 joined12:38
selckin Granjow: google "git split repo"12:38
Dave^| joined12:38
sonnym joined12:38
centipedefarmer_ joined12:39
Granjow selckin: whew, thank you :)12:39
alberto56 left12:41
babbos patrikf some more help please? maybe an example? I read the paragraph many times12:41
Spockz left12:42
PabloM joined12:43
akerl left12:44
mgaunard joined12:45
fedesilva joined12:46
alberto56 joined12:46
RaceCondition joined12:46
nd` joined12:46
patrikf babbos: your hook will receive the changed refs as arguments.12:47
babbos so i'll work with $1, $2... testing that right now...12:48
s0undt3ch joined12:49
nd` left12:49
Fly9 left12:50
achadwick joined12:50
akerl joined12:50
LiamH joined12:51
vdv joined12:52
ap3mantus left12:52
Granjow selckin: How much of the history does git change there? My repository is still 100 MB (quite a lot for text files only and 60 commits); 99 MB are in the .git subdirectory.12:53
s/change/keep/12:53
mika joined12:53
dbgster left12:53
Granjow Seems to me that there is still lots of old stuff?12:53
selckin Granjow: it will keep everything for x day12:54
Granjow: man git-gc probably has some to remove stuff12:54
jast Granjow: *automatic message* the 'git-gc' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-gc.html12:54
mklappstuhl left12:54
bitkiller joined12:55
Granjow git gc --prune="0 days" and my repository is still 100 MB.12:56
selckin needs more then that12:56
ramusara left12:57
FauxFaux Granjow: Bottom of man git filter-branch12:57
jast Granjow: *automatic message* the 'git-filter-branch' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html12:57
selckin git reflog expire=now --all; git gc --prune=now, some toher stuff12:57
hyperair joined12:57
shiba_yu36 joined12:57
DoctorDarren joined12:58
Granjow selckin: This shrinked my repository to a size of 100 MB12:59
FauxFaux: One moment, I'll try the other stuff there12:59
selckin are you running it on the original?13:00
Granjow selckin: No, on the clone of the clone of the splitted clone13:01
dwmw2____ joined13:01
dwmw2___ left13:02
Granjow Does this mean something special? http://paste.debian.net/119320/13:03
banisterfiend selckin: your name reminds me of the seljuk sultanate of rum13:03
harshu_ left13:03
envi_laptop joined13:03
banisterfiend selckin: http://en.wikipedia.org/wiki/Seljuk13:04
AaronMT joined13:04
Murr joined13:04
selckin banisterfiend: read it backwards13:05
icwiener joined13:05
banisterfiend nikcles13:05
drubies joined13:06
juvenal joined13:06
german__ joined13:06
Danielpk joined13:06
nlisgo joined13:08
bartek joined13:09
Granjow Tried to delete the refs/remotes/origin/master now with git update-ref, but it seems that this was not a good idea.13:09
selckin git remote del origin13:10
jutaro1 joined13:10
jutaro1 left13:12
daniel-s joined13:13
daniel-s hi13:13
if I say "git push origin master"13:13
I'm updating the master branch13:13
on origin13:13
with my most recent commit of my current HEAD?13:13
ndim you update the remote master with your local master13:14
"git push origin master" is short for "git push origin master:master"13:14
Granjow selckin: Whatever I try, I cannot get it any smaller. Also removed the origin, size did not change.13:15
selckin can you prove that it should be smaller?13:15
RobertLaptop left13:16
Deesl left13:17
Granjow selckin: No. But should it really be that big for 60 commits on C++ files?13:18
versatiletech left13:18
selckin pritty sure git is right, and you commited something big at one point13:18
s0undt3ch left13:18
Granjow selckin: can I check this?13:19
versatiletech_ joined13:19
wereHamster yes you can13:19
Granjow wereHamster: how can I check this?13:19
;)13:19
wereHamster I can say that without even knowing your question, because git can anything!13:20
(no, I did not read your question, I read the backlog from bottom up)13:20
Granjow I really changed text files only according to gitk.13:20
ap3mantus joined13:21
wereHamster Granjow: make a git clone file:///path/to/the/repo13:21
is that clone big, too?13:21
Granjow wereHamster: The exact same size.13:21
100 MB as well.13:21
selckin did you try git repach -ad, after the other too?13:21
wereHamster Granjow: there's a git find-large script on the wiki13:21
ramusara joined13:21
wereHamster run that in your repo, it'll show the largest objects13:21
Granjow wereHamster: Or wait, does it need to be file:///, or can it also be like /tmp/somewhere?13:22
centipedefarmer_ left13:22
Granjow selckin: Yes, several times13:22
selckin then run the script13:23
Granjow file:/// takes a little bit longer until I get the 100 MB repository13:23
ok13:23
cyphase joined13:24
Granjow ah. It for example points to a 18 MB .xcf file that is definitely outside of the directory I split. As all other files are as well.13:25
zwick joined13:25
centipedefarmer_ joined13:25
JakeyChan joined13:25
JakeyChan Do you have document for gitignore ?13:25
FauxFaux man gitignore13:26
jast *automatic message* the 'gitignore' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gitignore.html13:26
Granjow Why are they still there? I just did git log --names-only, and tere is no .xcf file at all.13:27
s0undt3ch joined13:27
selckin this a public repo?13:28
JakeyChan *13:29
!project/13:29
I want to ignore all file exception the project directory, is it wright ? in the project have many sub-direction13:29
sub-directory13:29
cakehero joined13:30
Granjow selckin: Nope. The one I want to split will become a public repository.13:30
normanrichards joined13:30
johnson09 left13:30
LekeFly joined13:31
broonie joined13:32
Jdub71 left13:33
broonie Has the algorithm used to decide what to send when doing a fetch got less efficient recently?13:33
herdingcat joined13:33
broonie I've been noticing fetches seem to be transferring substantially more data (eg, over 200M for a daily -next update).13:34
SimonP86__ left13:34
verto__ left13:36
banisterfiend broonie: did you upgrade git recently?13:38
hyperair left13:39
Granjow git log --name-only --follow --all -- *.xcf shows me the commit 29dc3f08557d3e4b0542a29cfd9bafea5cf46ed1.13:41
But this commit is not in «git log» at all.13:41
Why?13:41
joel_falcou left13:42
Granjow And how can I really get rid of it?13:42
TeckniX joined13:42
wereHamster Granjow: 'git log' displays the log of "HEAD"; git log --all displays logs of all refs13:42
Granjow: git branch --contains 29dc3f08557d3e4b0542a29cfd9bafea5cf46ed113:42
that'll tell you in which branch that commit is13:43
Granjow wereHamster: No output there. How can I see all refs?13:43
dr_lepper joined13:43
stermi_ joined13:43
stermi_ hi all :)13:43
wereHamster Granjow: git describe 29dc3f08557d3e4b0542a29cfd9bafea5cf46ed1 ?13:44
Granjow: or git branch --all --contains 29dc3f08557d3e4b0542a29cfd9bafea5cf46ed113:44
Granjow wereHamster: The commit is in git log --all indeed. git describe says: fatal: No tags can describe '29dc3f08557d3e4b0542a29cfd9bafea5cf46ed1'.13:44
freelock joined13:44
stermi_ Example: I add a key to to gitolite for example emanuele.pub and I add emanuele to manage my repositories13:45
wereHamster Granjow: so in which branch is it?13:45
stermi_ I want to use this to access to my git repos from my windows client13:45
Granjow wereHamster: no --all option for git branch ... git 1.7.5.313:45
stermi_ which is the link from my git on windows and the key on server? the username on windows?13:45
wereHamster Granjow: git branch -a --contains 29dc3f08557d3e4b0542a29cfd9bafea5cf46ed113:45
Granjow wereHamster: No output.13:46
abhatnag joined13:46
Granjow Hm13:47
sitaram stermi_: http://sitaramc.github.com/gitolite/doc/gitolite-and-ssh.html (this link explains in great detail how gitolite (and similar programs) use ssh)13:47
Granjow I cloned the original repository with /path. I'll try file:///path now.13:47
stermi_ left13:48
subsume joined13:48
wereHamster didn't I say you should do that lke 30 minutes ago?13:48
[intra]lanman joined13:48
Granjow wereHamster: From the original repository? I did it, but from the one I already run filter-branch on.13:49
verto__ joined13:49
cooloney left13:49
SimonP86 joined13:50
airborn_ left13:51
sou_ joined13:51
Granjow Oh. With file:/// the size of the repository has changed to ... 100 MB. I really feel stupid now.13:52
selckin without tried to be smart and makes hardlinks13:53
somebody__ joined13:53
somebody__ left13:53
xiangfu` left13:54
is left13:55
SavoSuperCool left13:55
versatiletech_ left13:55
Granjow But how can I get rid of those files now.13:55
wereHamster which files?13:56
Granjow The large ones which do not exist anymore but still exist.13:56
wereHamster so do they exist or not?13:56
elyob joined13:57
Granjow wereHamster: The .xcf which is in a completely different directory and only appears with git log --name-only --follow --all -- *.xcf13:57
wereHamster if you want to remove files from the history, use git filter-branch13:57
Granjow I followed the steps in the answer marked as answer here: http://stackoverflow.com/questions/359424/detach-subdirectory-into-separate-git-repository13:58
Using file:/// for the source repository.13:58
Ryback_ joined13:59
Ryback_ left13:59
Ryback_ joined13:59
Granjow I filtered cworkspace/, and the xcf file is in Graphics/13:59
as before, git branch -a --contains 29dc3f08557d3e4b0542a29cfd9bafea5cf46ed1 does not return anything13:59
selckin you know that won't change the original right13:59
gavin_huang left14:00
alnewkirk left14:00
f0i joined14:00
Granjow selckin: I know. What I want to do is create a separate repository from the cworkspace/ subdirectory. This worked partially, it shows me the files of the cworkspace/ subdir and only the commits from there, but it should be rather 2 MB than 100 MB.14:01
Mannequin joined14:01
Granjow (The splitted repository is too big. The original one should stay as is for now.)14:02
v0n joined14:02
boaz_ joined14:02
jutaro left14:02
gozoner joined14:04
ceej joined14:05
michas left14:05
JohnBat26 left14:05
centipedefarmer_ left14:06
shiba_yu36 left14:07
broonie banisterfiend: Probably.14:09
eikaas joined14:09
Granjow This is such a waste of time14:10
RobertLaptop joined14:10
selckin try providing more information and exactly what you did etc14:11
eikaas_ left14:11
mandric joined14:12
Granjow What I did is this: http://paste.debian.net/119330/14:13
cakehero left14:14
sebbi left14:15
Granjow selckin: Anything that looks suspicious?14:16
freelock left14:16
selckin well why aren't you checking the size of .git14:16
Granjow selckin: Because the size of .git is the size of the current directory minus 1 MB14:17
psoo joined14:18
cm|tmp How do I ignore all directories in a specified directory with git?14:18
alextheger joined14:19
cm|tmp .gitignore*14:19
_rane try adding */ to .gitignore in that directory14:19
madewokherd joined14:19
selckin Granjow: try starting from scratch and doing it properly14:20
joel_falcou joined14:20
cm|tmp That worked, thanks14:20
patrikf Granjow: just do a fresh clone14:20
selckin Granjow: you also never ran gc after the proper expire14:20
patrikf Granjow: or follow the checklist in the filter-branch manpage (but it's easier to just do a clone)14:21
erlnoob hi, I can't find the semantics of doing just "git fetch" ... while the man page for doing just "git push" is pretty clear (i.e, defaults to current branch's remote)14:21
Granjow Okay, you tell me step by step what I have to do. What do I clone now. The original repository?14:21
urkud_ left14:22
d00dlez left14:22
notjohn joined14:22
patrikf no, the filtered14:22
Granjow Which one? The one from the pastebin?14:22
patrikf you should know.14:22
shiba_yu36 joined14:22
meuh left14:23
alex__c2022 joined14:23
Granjow patrikf: Okay, I did. Now what?14:23
preflex left14:24
patrikf check that the clone has everything you need, check that it's as big or small as expected and if that's the case throw away the one you cloned it from14:24
Granjow It has everything I need, but also a lot that I do _not_ need, as all other clones before.14:24
FauxFaux Well, the stuff hasn't been filtered, then.14:25
patrikf then you didn't run filter-branch properly14:25
FauxFaux Caused by ^ ¬_¬14:25
SethRobertson Did you filter the tags too?14:25
patrikf causilty ftw!14:25
causality*14:25
Granjow patrikf: Then I don't know how to run it properly. How do I?14:25
FauxFaux You work it out by reading the man page.14:26
Granjow SethRobertson: I don't know. I used git filter-branch --subdirectory-filter cworkspace/slowmoGPU/ -- --all as suggested by the man page.14:26
patrikf so if you said it has stuff you don't need, what did you refer to?14:26
Granjow FauxFaux: No. I did everything as written in the man page, and it does not work.14:26
jatt left14:27
selckin do you still have the fiels in the workdir?14:27
Granjow patrikf: git log --name-only --follow --all -- *.xcf shows me a commit with files like Graphics/svg/x3/X3.xcf14:28
which is definitely not in the cworkspace/ directory14:28
Eko joined14:28
Granjow selckin: I cannot see them, only with the git log command.14:28
meuh joined14:29
SethRobertson Granjow: Do you have tags?14:29
patrikf Granjow: then you probably wanted to use filter-branch --prune-empty14:29
preflex joined14:29
Granjow patrikf: Still 100 MB.14:29
patrikf if not asked to, filter-branch will not remove commits that end up being no-ops.14:29
Granjow SethRobertson: There is one, yes.14:30
nevyn^_ joined14:30
patrikf SethRobertson has a good lead, too.14:30
SethRobertson Granjow, then I point you to the checklist for shrinking a repository: You really filtered all refs: use `--tag-name-filter cat -- --all` when calling `git-filter-branch`14:30
Granjow patrikf: I run git filter-branch --prune-empty on the cloned filtered clone.14:30
opalka left14:30
thierryp joined14:31
jutaro joined14:31
Granjow SethRobertson: I can do this now, right? Or must I do it when applying the subdirectory-filter?14:31
stermi left14:31
bkozal left14:31
patrikf the latter14:31
(for the tag part, don't know if prune-empty also removes commits that were empty already before the filtering)14:32
Granjow So I use this command: git filter-branch --subdirectory-filter cworkspace/slowmoGPU/ -- --all --prune-empty --tag-name-filter cat14:33
SethRobertson Granjow: I don't think using those arguments are every *wrong* but I will admit to have not studied the problem14:33
Granjow (on the clone of the original repository)14:33
okay?14:33
Tac joined14:33
patrikf shuffle it so that "-- --all" is the last part14:34
Granjow git filter-branch --subdirectory-filter cworkspace/slowmoGPU/ --prune-empty --tag-name-filter cat -- --all14:34
patrikf because -- separates arguments to filter-branch and arguments to rev-list14:34
sounds good14:34
ceej left14:35
Granjow Okay. 103 MB. Next step? Remove the remote origin?14:35
silouck left14:35
patrikf clone again and check whether the clone has everything you want and lacks everything you don't want14:35
ceej joined14:36
Granjow patrikf: Done. Has everything I want and everything I don't want as well. Still 103 MB.14:36
patrikf okay, please give an example for something you don't want14:37
versatiletech joined14:38
versatiletech left14:39
versatiletech joined14:39
thierryp left14:39
Granjow patrikf: Hm. Now the .xcf has gone. git-find-large finds the largest file with 75 kB.14:40
thierryp joined14:40
Granjow Can I try git gc --aggressive now?14:40
BiggFREE left14:41
patrikf that won't do anything on a fresh clone, I think14:41
fakewaffle joined14:41
patrikf hmh14:41
Granjow So it is possible that 60 commits on simple C++ files result in a 100 MB history?14:41
jfkw joined14:41
Granjow 100 MB _compressed_ history14:41
I mean, I do work a lot, but not that much.14:41
slavyXS left14:42
slavy60xs left14:42
namemon left14:42
SethRobertson Granjow: Seems unlikely but it depends on the file size. You can look at each reachable commit to try and find how big it is14:42
dfr|mac joined14:43
Granjow SethRobertson: Is there an easy way to do so? Can I output all diffs, for example?14:43
SethRobertson `git log -p --all | wc` should do it.14:44
robgleeson left14:44
Granjow The git-find-large says the top10 range from 75 kB to 25 kB.14:44
whyking joined14:44
Granjow 66236 255781 219852014:44
ericbarnes joined14:44
Granjow (output from git log -p --all | wc)14:44
patrikf and how do you check the git repository's size?14:45
Granjow du . -hs.14:45
or cd .git; du . -hs14:45
138 MB at the moment in the .git directory.14:45
freshmilk left14:46
patrikf wait a minute14:46
could git just have hardlinked the packfile?14:46
crap, the filter-branch manpage even has that14:47
Granjow I always used file:///14:47
mishok13 left14:47
patrikf oh14:47
mgaunard left14:47
judu joined14:47
selckin Granjow: have to run expire before the gc, with all the options listed earlier14:47
ksinkar left14:47
patrikf but a fresh clone wouldn't benefit from that14:47
rolfb left14:48
Granjow So I'll just live with it?14:49
judu left14:49
judu joined14:49
Granjow What happens if I commit files in the cworkspace directory plus a large one somewhere outside this directory. Will this be included?14:50
judu Are there any gitolite and ruby users?14:51
Granjow .git/objects/* contains some files that are > 2 MB14:51
thierryp left14:51
Granjow Can't be this either though. I used to check in a time tracking db, but its size is only 50 kB. And it is not listed in git-large-files.14:52
judu I need help with a ruby hook, using rvm to supply ruby, and gitolite doesn't know it…14:52
patrikf Granjow: so what are these objects? (check with git show)14:52
jutaro left14:52
deqer joined14:52
gnufied left14:53
deqer hey guys14:53
it's me again14:53
Granjow And according to wc, the third column is the number of bytes (git log -p --all), so 2 MB is < 100 MB.14:53
Modius joined14:53
HG` joined14:53
ChanServ set mode: +v14:53
selckin send me the repo14:53
Granjow patrikf: git show what? Git show filename of the .git/objects/8e/c7e8fa340444fbe751b35eb6dcebf520471c84 file?14:53
abhatnag Granjow: go 'git cat-file -p 8ec7e8fa340444fbe751b35eb6dcebf520471c84' to see what's in that object14:54
subsume left14:54
ShooterMG joined14:54
sitaram judu: what type of hook is this? (pre-receive, post-receive, ...etc)?14:55
Granjow abhatnag: It is a file from Graphics/ which is such kind of not inside cworkspace/.14:56
judu it's an update hook14:56
nevyn^_ left14:56
LekeFly left14:56
mishok13 joined14:57
judu My problem is that gitolite cannot find the gems I want14:57
Modius left14:58
Granjow abhatnag: To be precise: It is a: JPEG 3034x2024 3034x2024+0+0 8-bit DirectClass 2.198MB 0.000u 0:00.009 (last14:58
meuh left14:58
Granjow To be precise, I didn't even know this file still exists14:58
sitaram judu: if you didn't use gitolite how would it find the gems? Do it the same way except call the hook "update.secondary" instead of "update" (because gitolite already uses the "update" hook)14:58
meuh joined14:58
abhatnag Granjow: sorry I picked up on this late, what's the problem?14:59
subsume joined14:59
v0n left15:01
Jordano left15:01
Granjow abhatnag: The problem is: I have a big repository and a project in cworkspace/slowmoGPU which will eventually be OpenSource. I want to split this into a new git repository. It consists of text files only, but when I «git filter-branch» it, its size is at 100 MB (60 commits, total size of all files is 1 MB).15:01
bartek left15:01
radarek left15:02
abhatnag Granjow: have you tried a visual tool to locate the big files? what OS are you on?15:02
daniel-s left15:02
cesario left15:02
selckin did you actually do the expire+gc with all the options after you did the filter w/ tags?15:03
nevyn^_ joined15:03
bartek joined15:03
v0n joined15:03
Granjow abhatnag: I'm on linux. When I'm using the git-find-large script from https://git.wiki.kernel.org/index.php/GitFaq it reports that the biggest file is 75 kB. And the JPG file from above definitely should not be in the repository anymore since it was in a subsubdirectory of the Graphics/ subdirectory which is not a subdirectory of cworkspace.15:03
Spockz joined15:04
Granjow selckin: I just did git reflog expire --expire=now --all && git repack -ad again: 141 MB.15:04
judu sitaram: I am already using update.secondary. When using the system ruby distribution, no problem, but I want to use rvm (ruby version manager). I think that gitolite does not load the proper environment.15:05
abhatnag Granjow: so you're just trying to locate which files are the largest? Depends on what distro you're on, but try getting something like 'Disk Usage Analyzer' (prepacked with yum based distros) on your slowmoGPU15:05
Corren joined15:05
dr0id left15:05
judu Here is what I get when I push : http://paste.pocoo.org/show/403505/15:05
selckin Granjow: you're not running gc15:05
Granjow Oh.15:05
git gc --prune=now ... 3.7 MB.15:05
Spockz left15:05
canton7 ncdu is a good curses tool15:05
selckin Granjow: i told you to run that like as my 2nd line15:05
Granjow That's a lot better.15:06
selckin: I run it like 100 times today.15:06
selckin Granjow: and didn't see it in the pastebin which i said again15:06
Granjow selckin: http://paste.debian.net/119337/ ;)15:07
tore_ joined15:07
_psychic_ joined15:07
selckin yes you where right all along, we where all wrong15:07
nevyn^_ left15:07
devth_ joined15:08
Granjow I'll examine my history now ... write everything down ... and try again to check whether it works again :D15:08
budsondixon left15:08
Corren ok, I created a local branch, made a bunch of commits, merged that into master15:08
and now I need to revert out all of those changes15:08
how would you do that?15:08
Granjow selckin: I did not say anything like that.15:08
sitaram judu: I dont know anything about ruby, but if you're trying to install ruby software using a hook you're probably doing something very very wrong15:08
canton7 Corren you've answered your own questio :) git revert <sha1 of merge commit>15:09
ruby_on_tails left15:09
JakeyChan left15:09
Corren yea, but when I look at the commits on the github page, I see all of my commits, not just the merge15:09
schnatta joined15:09
judu sitaram: I am not trying to install ruby software in my hook. But to set the right environment, I have this in my bash/zshrc : [[ -s "/usr/local/rvm/scripts/rvm" ]] && . "/usr/local/rvm/scripts/rvm"15:10
Granjow selckin: What I meant to say is that I was amazed that it worked this time and not all other times before.15:10
canton7 Corren, hmm? If you revert the merge commit, it will revert all changes made by the merge, and so the branch which culminated in the merge15:10
Corren rgr15:10
judu Is there a way to tell gitolite to initialize its environment with this command ?15:11
Corren now, does revert roll back the entire repo, or just extract that commit?15:11
sitaram judu: that statement looks fine, assuming your update.secondary hook is in shell15:12
centipedefarmer_ joined15:13
judu sitaram: So, you're saying that I should have an update.secondary written in bash, that sets its environment using that statement and then calls a ruby script ?15:13
fedesilva left15:14
drev1 joined15:14
EricInBNE left15:15
sitaram judu: I have no idea what you're doing so I can't honestly answer that sorry15:15
can only guess15:15
Scorpion44a left15:15
tore_ left15:16
sitaram judu: if I reduce your question to "how do I ensure such-and-such env var is set and then such-and-such program is run from the update hook" then yes that is what you need to do15:16
cbreak_work left15:17
evorocks left15:20
corra joined15:20
verto__ left15:20
chrisdev joined15:21
dpino left15:21
jpalmer Let me start by saying, I'm not a developer. so excuse the possibly retarded question. Is there a way to have a file populated with the git commit hash, as it's being commited? (seems like the hash would be generated after the commit, so I suspect I know the answer15:21
selckin not really15:21
canton7 there is a workaround though. i think it's to do with one of the gitattrbutes filters? so the commit id is written to the file as it's checked out, rather than as it's committed?15:22
jpalmer We have an application stack that.. after it's installed.. we don't have a *good* way to determine what version was installed from git. so I'm trying to figure out a decent way to be able to identify versions.15:22
german__ left15:22
_psychic_ left15:22
selckin it's a really bad idea anyway, your build system should be doing it if needed15:22
_psychic_ joined15:22
selckin so put it a file at build time and include it15:23
iori joined15:23
judu sitaram:That's exactly what I needed. Thanks a lot, I was not at all in the "bash script to set env then call my ruby script" scope!15:23
kpreid left15:23
jpalmer selckin: so you're thinking a file (named verstion.txt for the sake of discussion) and as we rlease ne versions of the application stack, we manually update the file?15:24
jutaro joined15:24
jpalmer wow, can't type: "as we release new"15:24
boaz left15:24
boaz_boaz15:24
boazsender joined15:25
psoo left15:26
halfline_ joined15:26
j4mie left15:28
Corren left15:29
abhishek joined15:29
compnerd left15:29
Murr left15:29
alvaro_o joined15:30
sebersole joined15:31
abhatnag left15:31
Raging_Hog joined15:31
compnerd joined15:32
fedesilva joined15:32
verto__ joined15:32
mkramer joined15:32
namemon joined15:33
tystr joined15:33
selckin well usually you have a build step, like compiling etc, which is fully automated and scriptable, and capable of auto creating the file and including it15:34
xxtjaxx left15:34
pandeiro joined15:36
banisterfiend left15:37
cilly joined15:38
banisterfiend joined15:38
alvaro_o left15:39
Enchilada joined15:40
ChanServ set mode: +v15:40
cbz who can i speak to about getting a permanent voice?15:41
_rane so what do you need a voice for?15:41
buddybro left15:41
wereHamster cbz: register your nick15:41
cbz My nick is registered.15:41
stermi joined15:42
jonshea left15:42
cbz _rane: so i don't have to keep requesting it on the website.15:42
Granjow At the end it was just very few commands for extracting the directory: http://paste.debian.net/119351/15:42
wereHamster are you logged into your freenode account?15:42
thiago_home joined15:42
Granjow cbz: Did you also identify? /msg nickserv identify PASSWORD15:42
alip left15:42
Leemp left15:43
_rane i don't have a voice and i can talk15:43
weird stuff!15:43
Granjow selckin, wereHamster, patrikf -- thanks a lot for your help and patience!15:43
_rane: No, I cannot read you.15:43
Enchilada Whenever I download something from GitHub, or wherever in the Git community, why does the working copy always accompany the .git folder? Why isn't only the .git folder transmitted since .git has all the data anyway?15:43
I don't get it. Seems a waste of space.15:43
Leemp joined15:43
Granjow :-]15:43
subsume left15:43
Enchilada waste of internet bandwidth, that is15:43
wereHamster Enchilada: git clone --bare15:43
selckin Enchilada: why do you think thats not allready the case?15:44
stermi sitaram, I've installed msysgit+tartoise svn imported pub key created with msysgit tool, updated gitolite-admin but it wont work :'(15:44
wereHamster Enchilada: also, only the contents of the .git folder are transfered, then unpacked into your working tree15:44
cbz Enchilada: the working copy isn't transmitted separately15:44
_rane Enchilada: I think the working copy is created based on .git so it's not actually bandwidth wasted15:44
wereHamster Enchilada: so no bandwidth is wasted15:44
Enchilada ah ok15:44
thanks15:44
wereHamster did you really expect Linus to be that stupid? :)15:44
soc42 joined15:45
sitaram stermi: http://sitaramc.github.com/gitolite/doc/ssh-troubleshooting.html (this page and stuff linked from it is about all the help I can give you at this time, sorry)15:46
devth_ left15:46
stermi anyway I damn hate windows15:46
crakdmirror left15:46
stermi I don't understand how people can develop with it15:46
zwick left15:47
selckin stermi++15:47
mastroDani left15:47
alip joined15:47
stermi selckin, that's mean you quote me?15:48
zwick joined15:48
zwick left15:48
Ownatik left15:48
crakdmirror joined15:48
dpino joined15:49
hendersonj left15:50
jceb left15:50
Spockz joined15:51
d0k joined15:51
abhishek_ joined15:51
halfl_ne_ joined15:51
kenichi joined15:52
fedesilva_ joined15:53
verto__ left15:53
mastroDani joined15:53
fedesilva_ left15:53
amerine_ joined15:53
abhishek left15:54
halfline_ left15:54
jophish_ left15:54
cenuij left15:55
jophish_ joined15:55
shurane joined15:56
jmd joined15:56
fedesilva left15:56
stermi the only possible thing it's when my friend use git on windows it's not using (taking automatically) the right ssh key15:56
Behi left15:57
hendersonj joined15:57
corra left15:57
selckin msysgit+plink+pagent work fine15:58
sitaram friends dont let friends use windows15:58
jutaro left15:58
selckin is considering bringing a hd from home to be able to use linux :(15:58
Enchilada Would I therefore be correct in guessing that it's enough to back up the hidden .git folder when backing my shit up?15:58
sitaram USB stick will do, selckin15:59
Enchilada Since the rest has already been commited.15:59
judu left15:59
selckin sitaram: if this gets any slower the outcome might not be pritty15:59
tjholowaychuk joined15:59
pyrony left15:59
sitaram aah15:59
PHadm joined15:59
selckin usb3 gogo :(15:59
mikepack joined16:00
stermi sitaram, friend don't let friends use also mac, but it's harder16:01
alextheger left16:01
spearce joined16:02
selckin mac is fine16:02
ChanServ set mode: +v16:02
selckin can only have policy objects, its good to dev on16:02
PHadm hello all... contest with Git. So far, git 1; me 0. Trying to use .gitignore to exclude settings.php. .gitignore is ignoring the ignore16:03
stermi said a mac user :D16:03
selckin i'm not16:03
PHadm: git will never ignore a tracked file16:03
PHadm thats the point.. I don't want to track it16:03
RaceCondition left16:04
jmd selckin, What if it's in .gitignore ?16:04
selckin jmd: never.16:04
SimonNa joined16:04
dfr|mac left16:04
centipedefarmer_ left16:04
selckin PHadm: is it tracked allready or not?16:04
kenichi left16:05
hyperair joined16:05
kenichi joined16:05
PHadm yes, it already is16:05
wereHamster PHadm: git rm --cached settings.php && git commit -m 'untrack settings.php'16:05
zwick joined16:05
kenichi left16:06
PHadm perfect.. thank you16:06
verto__ joined16:06
jophish_ left16:07
Buglouse joined16:07
vivekp joined16:07
urkud_ joined16:08
ctshryock joined16:08
nevyn^_ joined16:08
Granjow Is it true that gitosis has been replaced by gitolite?16:09
jfelchner left16:09
wereHamster yes16:09
!gitosis16:09
jast *automatic message* gitosis is no longer maintained and supported by the author; we usually recommend gitolite instead which has much better documentation and more features: http://github.com/sitaramc/gitolite16:09
RaceCondition joined16:09
Granjow Aye, thank you. So I will switch my server to gitolite.16:10
PHadm left16:10
tearsong joined16:10
__name__ left16:10
vivekp left16:11
zwick left16:11
ctshryock left16:11
Swimming_bird joined16:12
jonshea joined16:12
jimbo-jones joined16:12
dan23232 joined16:14
capncodewash left16:14
jophish_ joined16:14
capncodewash joined16:17
cesario joined16:17
Granjow wereHamster: It seems that gitolite just works(TM) o.O That's very cool.16:17
Murr joined16:19
xenoterracide left16:19
herdingcat left16:20
PabloM left16:20
akosikeno joined16:21
sou_ left16:21
herdingcat joined16:21
capncodewash left16:22
Badiss left16:22
ksawicki joined16:22
bgy joined16:23
bgy hi16:23
how could I cancel a pushed commit?16:23
wereHamster bgy: you push one of its ancestors to the remote repo16:23
bgy wereHamster: like git push origin HEAD^16:24
?16:24
wereHamster no, git push origin HEAD^:master16:24
lectrick joined16:24
bgy wereHamster: ok thnak you!16:25
pyrony joined16:25
Spockz left16:25
metze joined16:25
tvw left16:26
verto__ left16:26
btanaka joined16:26
Maletor joined16:26
jmd bgy, But if anyone has pulled from that repo, they're going to have problems.16:27
Corren joined16:27
Ownatik joined16:27
bgy jmd: yeah I know that, in fact I don't advise to do that but the question was asked to me and I was wondering what is the correct way to do16:29
fedesilva joined16:29
centipedefarmer_ joined16:30
mkramer left16:32
cakehero joined16:32
nevyn^_ left16:32
jmd What's the equivalent of mercurial's "transplant" command?16:36
tewecske left16:37
xerora joined16:38
verto__ joined16:38
pasky jmd: it seems hg transplant is akin a bit to git rebase (-i) and a bit to git cherry + git cherry-pick16:38
RaceCondition left16:39
nakkor joined16:39
nakkor left16:39
kenichi joined16:40
lunks left16:41
q0rbanq-rban16:41
kedare joined16:41
verto_ joined16:41
ExtraSpice left16:41
pandeiro left16:41
chittoor joined16:42
smolyn joined16:43
lunks joined16:43
verto__ left16:43
shurane left16:43
PabloM joined16:43
Vaati joined16:43
verto_ left16:44
Travis-42 joined16:44
smolyn left16:44
urkud_ left16:45
ChanServ set mode: +v16:45
Vaati hello all16:46
centipedefarmer_ left16:46
Enchilada left16:46
Vaati ... meaning 7 people ... ;-)16:46
thats an ingenious method of stopping spam, I must admit16:46
dnuke joined16:47
canton7 is confused...16:48
Vaati about what?16:48
canton7 aah i get you. nah, everyone in here can talk. i think the +v thing is to do with people using online irc?16:49
Vaati oh16:49
pcav left16:49
Vaati nope, im using irssi...16:49
weird16:49
I thought it was some other form of +m that was going on here..16:49
sitaram Vaati: I see 812 nicks online on this channel right now16:50
Vaati for 800 some people, it is quiet though16:50
;-)16:50
rgr joined16:51
offby1 I thought you got +v only if your nick was "registered" ...16:51
spaceonline joined16:51
Vaati offby1: do /topic16:52
Arrowmaster no you goto the webpage in the topic and pass a captcha or something and it +v's you16:52
offby1 huh, I've never done that16:52
Vaati so, can I complain about disfunctional git repositories here ? lol..16:52
pandeiro joined16:52
achadwick left16:52
g0bl1n left16:53
bremner offby1: you are a registered ... nick16:53
Vaati I am too, but its not registered to me, i'm borrowing this nick16:54
babilen left16:55
troessner joined16:55
spaceonline left16:55
ExtraSpice joined16:56
Vaati left16:56
kedare left16:56
kedare joined16:57
offby1 so I'm half-right: you get "voiced" either if you're registered, or if you've filled in the captcha16:57
troessner left16:57
btanaka left16:57
ki__ joined16:57
jrock20041 joined16:57
jmd I can't get cherry-pick to accept more than one commit16:58
Travis-42 left16:59
n1xNc0d3 joined17:00
Ownatik left17:01
devth left17:01
devth joined17:02
RaceCondition joined17:02
stamina left17:03
RaceCondition left17:03
urkud_ joined17:03
jrock20041 Is there a tutorial on how to merge an existing svn repo into an existing git repo?17:04
gdmfsob joined17:04
pandeiro left17:05
davzie left17:06
Murr left17:06
mishok13 left17:06
radarek joined17:06
stamina joined17:06
SimonP86_ joined17:07
pyrony left17:07
offby1 jmd: I don't think it's intended to take more than one.17:07
jmd: if you have more than a couple of commits, maybe you should be rebasing instead of cherry-picking17:08
jmd the man page says 'Given one OR MORE existing commits ...'17:08
(my emphasis)17:09
SimonP86__ joined17:09
SimonP86 left17:10
gnufied joined17:10
Rotham joined17:11
german__ joined17:12
SimonP86_ left17:12
spaceonline joined17:12
hendersonj left17:13
RobertLaptop left17:14
canton7 jmd it's pretty new. do you have a recent version of git?17:14
jmd what's new?17:15
dreiss joined17:15
Vampire0_Vampire017:15
canton7 cherry-pick taking a range of commits17:15
jmd I'd be very surprised if my man page was newer than my git binary.17:15
deqer left17:15
canton7 fair play, just making sure you weren't reading the latest man page off the new, but with an old binary17:16
jmd git version 1.7.2.317:16
kpreid joined17:16
pantsman joined17:16
pantsman left17:16
pantsman joined17:16
canton7 s/new/net/17:16
Murr joined17:17
jutaro joined17:17
Zenopus left17:17
deqer joined17:18
Zenopus joined17:19
Rotham left17:19
centipedefarmer_ joined17:20
leo2007 left17:21
kingfishr joined17:21
Leemp left17:21
Leemp joined17:22
yhager joined17:23
curtana left17:24
Ownatik joined17:25
metcalfc joined17:25
deqer left17:25
n1xNc0d3 left17:25
drizzd joined17:26
RobertLaptop joined17:26
deqer joined17:27
kpreid left17:27
tatsuya left17:27
kpreid joined17:28
Xilent joined17:29
zwick joined17:30
kedare left17:30
mandric left17:31
cenuij joined17:32
cenuij left17:32
cenuij joined17:32
mandric joined17:32
fedesilva_ joined17:32
gusnan joined17:32
jutaro left17:33
hobodave joined17:33
alcuadrado joined17:33
alcuadrado Can I push everything except one commit?17:33
One of the devs modified an specific config file, and in order to pull he committed it locally17:34
now he has to push everything except that commit17:34
albel727 that was a stupid idea. undo the merge commit, and make that dev aware of git stash.17:35
remi_ joined17:35
HG`` joined17:35
remi_ left17:35
remi_ joined17:35
cbreak alcuadrado: you can push parts of the history17:35
albel727 crap. 4chan folk has spoiled me. I've lost my politeness.17:36
remi_ left17:36
cbreak but only if it's up to a limit17:36
maurer_nopriv joined17:36
stermi left17:36
cbreak you can not leave away a commit in the middle17:36
fedesilva left17:36
alcuadrado cbreak, great! how?17:36
fedesilva_fedesilva17:36
cbreak just reset away the commit you want to not push17:36
(put it into a new branch before)17:36
Granjow I've got two users in gitolite. How can I read as the second user? Or, generally, how exactly am I identified? Just by the SSH key I use for the connection?17:37
btanaka joined17:37
soc42 left17:37
cbreak Granjow: yes17:37
mastroDani left17:37
alcuadrado btw, is there a way to say to git "leave this file in this revision?"17:37
pyrony joined17:38
cbreak alcuadrado: no17:38
lightcap joined17:38
ksawicki left17:38
cbreak git does not do per-file history17:38
nevyn^_ joined17:38
HG` left17:38
alcuadrado yep, I know that, but who knows :)17:38
thanks cballou17:38
cbreak,17:38
Granjow cbreak: I know that I can set the used SSH key in ~/.ssh/config for an IP or hostname. Can I also somehow override this temporarily for a clone/push?17:38
cbreak Granjow: with ssh-add maybe17:39
albel727 alcuadrado: first off, you need to "git reset --hard <that commit sha you don't want to push>". then git branch <newbranch>. then "git reset --hard <that_commit>~1" then git pull. if all the history is ok, then you can push. a file from a specific revision can be obtained with git checkout <sha> -- <file>.17:39
cbreak I would do it differently17:40
alcuadrado thanks albel727 :)17:40
cbreak I'd first git branch backup17:40
n1xNc0d3 joined17:40
Chillance joined17:40
cbreak then git reset --hard commitbeforetheevilcommit17:40
then git push17:40
angelsl left17:40
Danielpk Guys, can i push to a no-bare repository?17:40
albel727 hmm. that probably is safer, yes. you forgot a pull, incidentally. I guess, git reflog has spoiled me too.17:41
Danielpk: !bare17:41
jast Danielpk: *automatic message* an explanation of bare and non-bare repositories can be found here: http://bare-vs-nonbare.gitrecipes.de/17:41
dannas joined17:41
cbreak Danielpk: only with lots of care17:41
Danielpk: basically, do NOT touch the branch that is checked out17:42
thakis joined17:42
cbreak or who ever uses that branch will get into trouble17:42
Danielpk cbreak: i want use it to deploy17:42
thakis hi folks. is there an easy way to ask git log which files i changed in the last 2 weeks?17:42
yota joined17:42
deqer left17:42
cbreak Danielpk: git is not for deploying17:42
mastroDani joined17:42
cbreak thakis: ask git diff17:42
thakis: man git diff --name-status or what ever17:43
jast thakis: *automatic message* the 'git-diff' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-diff.html17:43
Danielpk cbreak: humm i know he isnt, but i cant use Capistrano so...17:43
cbreak with the range you want17:43
nlisgo left17:43
albel727 Danielpk: just read the doc I gave you.17:44
deqer joined17:44
thakis cbreak: i couldn't find a way to tell git diff to only show diffs by me (as in --author)17:44
jstemmer joined17:44
cbreak albel727: hmm, that seems different than faq non-bare17:44
jast albel727: *automatic message* Pushing to non-bare repositories is discouraged: please see https://git.wiki.kernel.org/index.php/GitFaq#non-bare17:44
Danielpk albel727: oi will read thx ;)17:44
cbreak thakis: that's what git log is for17:45
albel727 cbreak: of course it does. ) jast wrote it, if I'm not much mistaken. I think, non-bare faq is too hard on a newbie.17:45
thakis cbreak: i couldn't find a way to let git log show a list of files joined over several commits17:45
hence my asking here17:45
cbreak thakis: yeah, it can't really do joins17:45
captainramen great news everyone17:45
cbreak thakis: but you can use a --format that only has the names17:46
captainramen i've finally convinced my shop to convert to the git religion17:46
cbreak and then pipe it through sort, maybe17:46
adymitruk captainramen: what were they using before?17:46
ramusara left17:46
cbreak guesses folders with dates in the name17:47
Granjow cbreak: This did not do the trick, but I could add a new Host in ~/.ssh/config: http://help.github.com/multiple-ssh-keys/17:47
That's quite nice, it even works :)17:47
cbreak yeah, but it's a hack17:47
Granjow Why?17:47
cbreak if you use ssh-add, you have to unload the other key, and not use the ssh config stuff at all17:48
Granjow: because it abuses some fake host name for key selection :)17:48
zxc___ joined17:48
captainramen adymitruk: subversion, what else17:49
mando joined17:49
captainramen adymitruk: although before that they were tacking on the date to the end of filenames17:49
Granjow cbreak: Yet it works, and I don't need to ssh-add again when I want to test next time :) But, I already have an entry for my server (the other user) in my .ssh/config; when I now unload the ssh agent, wouldn't it just try the key in there?17:49
I mean, how can I force it to use the ssh-add-ed?17:49
cbreak it'll use it if no special one is configured I suppose17:50
Travis-42 joined17:50
cbreak I never added override keys to ssh config17:50
psoo joined17:50
thakis left17:50
Granjow So you're doing it via ssh-add only? (no ~/.ssh/config?)17:50
centipedefarmer_ left17:52
mastroDani left17:52
Travis-42 left17:52
Vile joined17:52
adymitruk captainramen: rofl! too funny17:52
herdingcat left17:54
cbreak Granjow: yes. I only use one key though17:54
anjen joined17:54
Granjow cbreak: Okay. And thanks for the hints, I think I now understand what ssh-add does :)17:55
Rogi joined17:55
cbreak it saves you from having to type in your pass poem every time you want to use the key17:55
or leave it on disk unencrypted17:55
cbreak is partially paranoid17:56
adymitruk I've got the nasty problem of someone wanting to store excel files in the same repo as the code17:56
opalka joined17:57
adymitruk I know that excel is a compressed folder structure with xml data17:57
cbreak adymitruk: for git it's just a file that changes every commit17:57
that means: big repository, slow cloning, unresolvable merge conflicts17:57
adymitruk I'm wondering if there is a smudge clean script out there to store excel as xml and allow git not to treat these files as binaries17:58
cbreak make him a submodule or one of those git slave things17:58
and keep his filth out of the main repo17:58
maurer_nopriv left17:58
mastroDani joined17:58
jrock20041 Is there a tutorial on how to merge an existing svn repo into an existing git repo?17:58
mcluskydodallas joined17:58
adymitruk cbreak: unfortunately it is something that has to be stored beside the code. it's test cases17:59
cbreak: I will get them off of excel in a while for those.. probably just use html18:00
cbreak use csv18:00
excel can read that18:00
and write it too18:00
I think...18:00
albel727 it can18:00
Granjow cbreak: Yes, that's true. I'm atm too lazy to change to ssh-add (because the current way works), but the next time I have to set up my PC ... :)18:01
Murr left18:01
btanaka left18:02
marcob left18:02
alberto56 left18:04
Fretta joined18:06
captainramen so, i need to train these people in the ways of git. probably in a conference room on osx18:07
is there some super simple online tutorial page i can just load up and follow?18:07
bgerber left18:07
zxc___ left18:09
cbreak you should just show general workflow18:10
zxcp joined18:10
ChanServ set mode: +v18:10
cakehero left18:10
Murr joined18:10
zxcp hey guys im trying to set up git on my ubuntu server with this guide: https://help.ubuntu.com/community/Git .... everything works fine until im running "git clone [email@hidden.address] im getting Permission denied (publickey).18:10
aspotashev left18:10
veronatii joined18:10
minter joined18:10
ChanServ set mode: +v18:11
minter Hello - anyone around who might be able to help me figure out how to recover from a corrupted repository?18:11
joeytwiddle joined18:12
mma joined18:12
shurane joined18:12
bgerber joined18:13
captainramen cbreak: only thing i'm not sure of is how to create a merge conflict so I can show them how to fix it18:15
cbreak: since it's damn nigh impossible with git =)18:15
cbreak just clone the repositoy18:15
and add a new function to a class18:15
justin-george joined18:15
cbreak at the same spot18:15
captainramen cbreak: thanks!18:15
threeb joined18:15
cbreak easy to solve conflict :)18:15
selckin just change the same line twice and try to merge18:16
babbos left18:16
captainramen if i rebase one against the other i will still get the conflict right18:16
nevyn^_ left18:17
cbreak yes18:17
captainramen awesome18:17
cbreak might look different though18:17
minter When I attempt to do things like switch branches or run "git gc" or "git fsck", I'm getting errors like this:18:17
minter:(git)teamsnap.broken[master]/$ git co user_files_paperclip fatal: failed to read object 4406bafc1128e184fe002b68fa347faf79ea795f: Invalid argument18:17
I'm stumped as to how to get past this bad object.18:18
boombatower joined18:18
boombatower left18:18
boombatower joined18:18
spaceonline left18:19
cbreak minter: weird. I've not seen that so far.18:20
can you clone the repo?18:20
bremner can you fsck (or yourOS equivalent) ?18:20
minter I can clone the remote repo, but then all my stuff in the local branches is inaccessible.18:20
adymitruk cbreak: I think tab separated is better as this data is very textual and you can find commas in the data18:20
cbreak separate them with what ever you want...18:21
as long as it's text, git should be able to deal with it reasonably well18:21
minter: I mean, can you clone the local one18:22
minter Hm, lemme try that.18:22
zxcp hey guys im trying to set up git on my ubuntu server with this guide: https://help.ubuntu.com/community/Git .... everything works fine until im running "git clone [email@hidden.address] im getting Permission denied (publickey).18:22
noisebleed left18:22
erichammond left18:23
minter No, cloning the broken repository gives the same error - "remote: error: Could not read 440cf08c2207cf3aa1132966fcec10b2ca4a601e"18:23
bremner !gitosis18:23
jast *automatic message* gitosis is no longer maintained and supported by the author; we usually recommend gitolite instead which has much better documentation and more features: http://github.com/sitaramc/gitolite18:23
mma left18:23
cbreak minter: can you find that file?18:23
minter Where would it be?18:23
cbreak it should be inside .git/objects18:23
minter K - lemme check.18:23
drizzd left18:24
cbreak zxcp: also, can you log in with that ssh key on the server?18:24
minter cbreak: So if the object is '440cf08c2207cf3aa1132966fcec10b2ca4a601e', should it live in .git/objects/44/0cf08c2207cf3aa1132966fcec10b2ca4a601e ?18:25
I don't see anything similarly-named in .git/objects/4418:25
cbreak that's what I think, yes.18:25
weird18:25
you wouldn't happen to be using that crappy drop box thing, would you?18:26
minter I don't think so - just straight git on OS X 10.618:26
cbreak very weird.18:26
irc2samus joined18:26
minter Yeah, I'm stumped as to why it's trying to read this object that I can't find.18:27
rostayob left18:27
zxcp cbreak: yes18:28
no problems ssh to the server with my ordinary account18:30
bthesorceror joined18:30
cbreak no18:30
that's not what I mean18:30
with the git account18:30
nevyn^_ joined18:31
gitn00b joined18:31
q-rbanq0rban18:32
minter cbreak: I tried to send an email to the git email list and it hasn't seemed to show up in the archives yet - do you know if there are steps for a first-time poster to use on that list?18:32
zxcp cbreak: no, i cant18:32
smolyn joined18:32
cbreak I've never looked at that list18:32
zxcp: then something is wrong with your ssh setup, somehow18:33
can't help you more18:33
get gitolite :)18:33
lightcap left18:33
zxcp "Installing the gitosis package will create the user gitosis and the home directory for it at /srv/gitosis, which contains the repositories and configuration information" from the guide im follow18:33
PerlJam zxcp: don't use gitosis, use gitolite18:34
zxcp but i cant see the user gitosis18:34
cbreak gitosis is ancient and as far as I heard unmaintained since ages18:34
zxcp alright i'll try gitolite18:35
thank you :)18:35
btanaka joined18:37
hacim joined18:38
hacim i see this in my logs a lot: git-daemon[16931]: The remote end hung up unexpectedly18:38
what causes that?18:38
cbreak hacim: all kinds of things18:39
network cable unplugged for example18:39
soc42 joined18:39
morganick joined18:39
hacim cbreak: ok, lets assume the nic is stable on the machine :)18:41
drake01 joined18:41
Xilent left18:41
hacim because I know it is18:41
cbreak mitm attack18:42
ctshryock joined18:42
dv310p3r joined18:43
patrikf connection loss on the client and ^C probably have the same effect18:43
ctshryock left18:43
zivester__ joined18:44
cbreak or the server just terminated for some reason like lack of permission/memory/motivation/...18:44
Slush- joined18:44
Maletor left18:44
patrikf why would it log that the remote end closed the connection then?18:45
doesn't sound very plausible.18:46
rndbit` left18:46
Granjow zxcp: gitolite is running before you even found documentation for gitosis. As I saw today.18:47
shiba_yu36 left18:47
Maletor joined18:47
bthesorceror left18:47
__name__ joined18:47
__name__ left18:47
__name__ joined18:47
LongBeach joined18:48
g3d joined18:49
g3d left18:49
g3d joined18:49
g3d hi, when I invoke git show --pretty=format:%b I'm not only getting message body, but diff as well. How can I supress diff output?18:50
rndbit joined18:50
erlnoob left18:51
minter left18:52
albel727 wow. that must be a bug, I guess.18:53
you can try git log -1 --pretty=%b18:53
frederick left18:53
g3d albel727: yeah... ok thanks18:54
ymasory joined18:54
blorbx joined18:54
legumbre_legumbre18:56
albel727 g3d: incidentally, --quiet option helped me with git show.18:57
it's documented in man git-diff-tree18:57
jast *automatic message* the 'git-diff-tree' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-diff-tree.html18:57
alip left18:58
g3d albel727: interesting... thanks18:58
kipras joined18:58
erlnoob joined18:58
jjuran joined18:59
mkanat joined18:59
alip joined18:59
gkmngrgn joined18:59
NooRotic what's the difference between git stash pop and git stash apply ?19:02
prolly should just use the googles.....my bad19:02
SimonNa left19:02
poseid joined19:03
thiago_home NooRotic: pop also removes the entry from the stash list19:04
Spockz joined19:04
thiago_home so you can't apply it again19:04
yairgo joined19:04
explodes joined19:04
Modius joined19:04
explodes Is there some way to edit my user image?19:05
Someone on our team has a custom one...19:05
Mine is auto-generated it looks like.19:05
Granjow left19:06
jjuran left19:06
NooRotic thankz thiago19:06
makes sense19:06
gitn00b left19:06
KB1JWQ joined19:06
ph^ joined19:07
ph^ left19:07
ph^ joined19:07
Textmode joined19:09
Modius left19:09
Modius joined19:10
NightMonkey joined19:10
erichammond joined19:11
NightMonkey Hi, *. Are there any cons to accessing a repo via Local *and* via ssh (via a single 'git' user)?19:11
KB1JWQCorey19:11
explodes How do I undo a pull?19:12
hobodave_ joined19:12
nevyn^_nevyn^19:12
explodes > git pull origin HEAD, meant to do git pull origin develop19:12
jmd Exposure, reset19:12
_rane git reset --hard @{1}19:12
opalka left19:12
Spockz left19:12
tore_ joined19:13
hacim left19:13
nevyn^ left19:13
hobodave left19:14
gnufied left19:15
spaceonline joined19:15
warthog9 left19:16
normanrichards left19:16
normanrichards joined19:16
btanaka left19:16
ymasory left19:16
warthog9 joined19:17
NightMonkey hears crickets.19:17
gnufied joined19:17
berserkr joined19:17
NightMonkey Does anyone have a setup with both Local and SSH access, together?19:17
bremner NightMonkey: is the repo bare?19:18
NightMonkey bremner: Sorry, "bare" in what sense?19:18
bremner NightMonkey: !bare19:18
jast NightMonkey: *automatic message* an explanation of bare and non-bare repositories can be found here: http://bare-vs-nonbare.gitrecipes.de/19:18
NightMonkey bremner: Ah, thanks. Reading...19:18
alberto56 joined19:19
osfameron left19:19
stamina left19:19
sgronblo joined19:19
osfameron joined19:19
stamina joined19:19
shurane left19:20
explodes explodes: !bare19:20
jast explodes: *automatic message* an explanation of bare and non-bare repositories can be found here: http://bare-vs-nonbare.gitrecipes.de/19:20
cwillu_at_work joined19:20
tokkee joined19:20
Cacheaway joined19:21
warthog9 left19:21
airborn left19:21
jmd Why do we talk about non-bare repositories?19:21
_W_ left19:21
jmd Shouldn't they be called "clothed"?19:21
n1xNc0d3 left19:22
airborn joined19:22
_W_ joined19:22
NightMonkey Ah, I'm gonna have to look up what "git init --shared" is, now, too.19:23
!shared19:23
cbreak NightMiles: it's in man git-init19:23
jast NightMiles: *automatic message* the 'git-init' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-init.html19:23
RichardBronosky joined19:23
cbreak do NOT confuse it with --shared of git clone19:23
Slix` joined19:23
ISF joined19:24
legumbre_ joined19:24
NightMonkey cbreak: Yep, reading the man page now, thanks.19:24
RaceCondition joined19:25
zwick left19:25
mhagger joined19:25
legumbre left19:25
helvete joined19:27
erlnoob hi, how do I unset upstream on a branch?19:28
Murr left19:29
zwick joined19:31
NightMonkey bremner: So, we're starting with a bare repo. :)19:32
It will be a SSH-created repo ala Pro Git, but a user would like Local access, too.19:32
(dedicated git user, git-shell, etc.)19:33
jackdempsey joined19:33
bremner NightMonkey: they have to clone19:33
err. wait. What do you mean local access? editing the files on that host?19:34
caseymcg joined19:34
NightMonkey bremner: A user with a shell account would like to locally interact with the repo.19:34
bremner: They're beefing that they don't want to do ssh from the same host that the repo lives on...19:35
bremner just have them run git clone file:///something19:35
and set the permissions appropriately19:35
it should be fine.19:35
patrikf see the --shared argument to git init19:36
iori left19:36
rolfb joined19:36
NightMonkey bremner: Ah, so I'd have to open the permissions on the "git" user's home directory to allow all access to, say, a "gitdev" group which has the developers in it?19:38
bremner correct19:38
and presumeably write as well.19:39
NightMonkey patrikf: Does --shared just do this permissions stuff for me, or does it do something different to the repo's metadata?19:39
bremner but in practice, cloning over ssh and cloning over file are pretty much the same, so you may not want to bother19:39
NightMonkey bremner: OK, but in order to allow the file:// protocol to work, I'd need to open the permissions on the repo, right?19:40
bremner the developer may have had the idea they could just "cd ~git/repo && vim foo.php" which isn't possible with a bare repo (or with svn for that matter)19:40
NightMonkey: correct19:40
poseid left19:40
akosikeno left19:40
malumalu joined19:40
jrock20041 Is there a tutorial on how to merge an existing svn repo into an existing git repo?19:41
fedesilva left19:41
legumbre_legumbre19:41
nevyn^ joined19:41
gnufied left19:41
anjen left19:41
NightMonkey bremner: Thank you!19:41
spaceonline left19:43
patrikf NightMonkey: you need to set the permissions properly for ssh, too.19:44
gnufied joined19:44
patrikf unless you're using a special setup such as gitolite.19:44
NightMonkey patrikf: SSH is already working. But, do you mean that if I blow open permission for Local to work, SSH+git will not?19:45
drake01 left19:45
NightMonkey shudders.19:45
patrikf I did not mean that. it can happen if you don't know what you're doing and do it wrong19:45
soc42 left19:45
jjuran joined19:46
NightMonkey patrikf: Like changing the permissions on ~/.ssh/ or such.19:46
mhagger jrock20041: are the two repo related? E.g., did the git repo come from an earlier git-svn conversion of the SVN repo?19:46
NightMonkey patrikf: (clumsily, that is)19:46
booginga joined19:46
patrikf NightMonkey: do you use gito(lite|sis) or normal ssh?19:46
bremner yeah, so init --shared is crucial there so that git sets the permissions on newly created objects and refs.19:46
NightMonkey patrikf: normal ssh. I looked at gitolite, and it looks neat, but this is for a team of two, maybe 3 devs at present.19:47
patrikf well if you use normal ssh it's no difference for permissions than local access.19:47
unless you've set it up in a weird way19:47
i.e. if you have one of them working, the other will, too.19:47
fedesilva joined19:48
stepnem left19:48
marc321 joined19:48
gnufied left19:48
patrikf but you should've used --shared=group or similar already then, or it wasn't fully working anyway.19:49
NightMonkey patrikf: Thanks. I was hoping that there would be some nasty corner case that would be brought up, just because I'd like to keep it simple, one protocol. ;)19:49
jackdempsey left19:49
NightMonkey patrikf: But, I guess I have to tell them that "Git is so flexible!" ;)19:50
patrikf its fully transparent to the user. the only thing that changes is the URL19:50
atyz joined19:50
helvete left19:50
NightMonkey It would seem, from a workflow perspective, it would be easier for everyone to just ssh. Plus, you could do some nice DNS tricks that make migrations simpler.19:51
Raging_Hog left19:51
patrikf sure, it's up to you to make it a policy to use ssh even on the same machine19:52
NightMonkey patrikf: Well, maybe later down the road. Anyway, thank you for helping me understand.19:53
stepnem joined19:53
erlnoob left19:54
OOPMan left19:54
jrock20041 left19:54
marc321 left19:55
ksawicki joined19:55
ironfroggy joined19:56
ironfroggy can anyone remind me how to update master to origin/master ignoring whatever master currently is?19:57
_rane git reset --hard origin/master19:57
ironfroggy thanks19:57
mhagger left19:57
g0bl1n joined19:58
batrick joined19:59
Chaser joined19:59
neunon joined19:59
neunon left19:59
neunon joined19:59
jutaro joined20:00
zwick left20:02
frooh joined20:07
frooh left20:07
frooh joined20:07
frooh what's the best way to find the newest tag contained in a given branch?20:07
jmd left20:07
versatiletech_ joined20:08
cbreak frooh: man git-describe20:08
jast frooh: *automatic message* the 'git-describe' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-describe.html20:08
frooh oh awesome20:08
cbreak or look at git log --decorate20:08
versatiletech left20:08
versatiletech_versatiletech20:08
babilen joined20:08
OOPMan joined20:09
Nikoli joined20:10
frooh very cool20:10
cbreak: thanks :-)20:10
cbreak np20:11
p3rror left20:11
juangiordana joined20:11
juangiordana left20:12
Dave^| left20:12
ksawicki left20:12
Vile left20:13
juangiordana joined20:13
Vile joined20:14
frooh left20:15
g0bl1n left20:16
jjuran left20:16
Pistos joined20:18
Pistos How can I dump what a file looked like at a given SHA1?20:18
Besides git co && cat file20:18
cbreak Pistos: man git-show20:20
jast Pistos: *automatic message* the 'git-show' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-show.html20:20
Pistos Oh here: git show SHA1:file20:20
cbreak Pistos: man git-cat-file -p20:20
jast Pistos: *automatic message* the 'git-cat-file' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-cat-file.html20:20
patrikf git show with the <treeish>:<path> syntax20:20
Pistos Thanks, guys.20:20
Just needed to websearch just a little bit beyond what I did before coming here.20:21
lanthan joined20:21
Slix` left20:22
veronatii left20:23
p3rror joined20:24
nevyn^ left20:25
tvw joined20:26
Spockz joined20:26
mando left20:27
mikepack left20:29
Zenopus_ joined20:29
spaceonline joined20:30
RobertLaptop left20:30
sonnym left20:31
Zenopus left20:31
Zenopus_Zenopus20:31
mastroDani left20:31
nevyn^ joined20:32
havenn joined20:32
explodes left20:33
Spockz left20:33
dannas left20:33
vulpy_ joined20:35
ben225 joined20:36
fcuk112 joined20:36
mklappstuhl joined20:37
mastroDani joined20:38
zxcp left20:42
squiggy joined20:42
RobertLaptop joined20:43
agitgit joined20:43
nevyn^ left20:43
agitgit left20:44
workmad3 joined20:44
tewecske joined20:44
spaceonline left20:44
lmarcetic joined20:44
muddo joined20:45
hobodave_hobodave20:45
lmarcetic hi. i compiled a file, and then commit the thing. how do i permanently remove the binary from the repo?20:45
Pistos left20:45
lmarcetic i'm the ultimate noob btw20:45
_rane sounds accurate20:46
lmarcetic all the more reason i need help, don't you think?20:46
dbgster joined20:46
_rane you've not provided enough information on what you have done and want to do20:47
mcluskydodallas left20:48
morganick left20:48
mcluskydodallas joined20:49
lmarcetic compiled the thing, git add *, git commit -m 'fixed indents', git remote add origin blah, git push origin master, AND THEN: rm a.out. now i want it to disappear elsewhere (as if it never was commited if possible)20:49
jankoprowski joined20:50
alex__c2022 left20:51
jankoprowski Hi20:51
LekeFly joined20:51
lmarcetic_ joined20:51
jankoprowski What is the difference (when I'm on branch 'experimental') between 'git merge master' and 'git rebase master'20:51
lmarcetic_ left20:51
lmarcetic left20:51
cbreak lmarcetic: git commit --amend after staging the removal20:51
then force push20:51
be sure to understand the meaning of history rewriting20:52
lmarcetic joined20:52
lmarcetic where was I?20:52
yarvin joined20:52
lmarcetic remote add origin thing, disregard that, that failed :-)20:52
so, how do I uncommit or at least remove a.out now?20:52
alex__c2022 joined20:53
fakewaffle left20:53
jankoprowski lmarcetic: git revert20:53
drubies left20:54
lmarcetic jankoprowski: git revert what?20:55
jsick3 left20:55
charon lmarcetic: revert nothing. do what cbreak said20:55
jankoprowski lmarcetic: commit You want to revert20:55
You mast pass SHA1 of this commit as parameter20:55
lmarcetic i didn't hear what cbreak said20:55
oh20:56
charon lmarcetic: including (very important!) understanding the meaning of history rewriting20:56
cbreak lmarcetic: git commit --amend after staging the removal20:56
then force push20:56
be sure to understand the meaning of history rewriting20:56
neunon left20:56
lightcap joined20:56
jankoprowski What is the difference (when I'm on branch 'experimental') between 'git merge master' and 'git rebase master'?20:56
charon jankoprowski: abstractly speaking, if B is $(git merge-base master HEAD) then merge combines the changes sets 'git diff B..master' and 'git diff B..HEAD' and builds this combined set on top of B, then calls it a merge commit20:56
bartek left20:56
cbreak jankoprowski: http://eagain.net/articles/git-for-computer-scientists/20:57
charon jankoprowski: while rebase rebuilds the entire chain of individual changes "done by" the commits B..HEAD on top of curent master20:57
versatiletech left20:58
jankoprowski charon: I get it - in rebase I modify existing commits, in merge I do not.20:58
versatiletech joined20:58
ironfroggy left20:58
lmarcetic cbreak: i still see it in github history :-(20:59
jankoprowski is operation 'git push' block remote repository?20:59
charon jankoprowski: well, except as the author of the eagain article eloquently said: you cannot modify, you can only rewrite and forget20:59
lmarcetic also jankoprowski20:59
replore_ left20:59
nevyn^ joined20:59
cbreak lmarcetic: was the force push successfull?20:59
(compare hash of git log with the hash you see there)20:59
charon jankoprowski: so rebase rewrites. if you also forget depends on whether you have more refs pointing at commits in the current branch20:59
lmarcetic cbreak: yes20:59
jankoprowski ok21:00
charon: is 'git push' somehow block remote repository?21:00
cbreak lmarcetic: then you don't see it anymore21:00
Anubisss joined21:00
Ownatik left21:01
rolfb left21:01
charon jankoprowski: huh?21:01
ap3mantus left21:01
lmarcetic cbreak: got ti right here, can even download.21:01
cbreak no21:01
lmarcetic cbreak: i didn't put in --force first though21:01
cbreak you just said that the hash is the new one21:01
so the old version of the history is not there anymore21:02
jankoprowski charon: If two 'git push' commands will be run in the same time - are they queued or made in the same time?21:02
lmarcetic cbreak: revert 'blah' is in the history as the third commit. the second commit, however, still has a.out21:02
hobodave left21:02
hobodave joined21:03
cbreak lmarcetic: why the hell did you do a revert?21:03
that was dumb21:03
brainbox1100_ joined21:03
vulpy_ left21:03
brainbox1100_ left21:03
cbreak you'll have to rewrite the history with git rebase -i now21:03
lmarcetic fatal: Needed a single revision21:03
cbreak yes...21:04
ap3mantus joined21:04
cbreak read the man page21:04
lmarcetic Invalid base?21:04
cbreak lazy users...21:04
lmarcetic new users21:04
cbreak you'll kill your repository if you use rebase without reading the man page21:04
it's a very sharp knife in git's arsenal21:04
(unless you also read git reflog :)21:04
nazgul101 left21:04
charon jankoprowski: it's atomic per ref iirc21:05
lmarcetic this man page is huge21:06
ap3mantus left21:06
lmarcetic i'm just gonna remove my repo via some web interface and start anew21:06
jankoprowski charon: so hmm ... I'm just thinking to merge incoming revision to another branch in hook.21:06
charon: And I'm guessing is it possible or not.21:07
charon lmarcetic: you could start by not listening to two people's contradictory advice at the same time [scnr]21:07
chittoor left21:07
charon jankoprowski: possible, but usually not desirable because a merge may conflict and require manual intervention21:08
Jippi left21:08
jankoprowski charon: That is what I exactly need.21:08
charon: Check is merge will work - in dry mode.21:08
charon: I do not know is there something like dry merge in git :21:09
charon no. try merging; if it conflicts, back out21:09
german__ left21:09
jankoprowski charon: Can I do this on the same bare repositry where push coming?21:09
urkud_ left21:09
jankoprowski charon: I want to do this while push comming.21:10
charon jankoprowski: you cannot merge at all in a bare repo21:10
jankoprowski charon: wow - I did not know :21:10
charon double checks21:10
lmarcetic charon: ok i just recommited all of history -_- please tell me how to unmake a dir a repo21:11
brian_g left21:11
sonnym joined21:11
cbreak jankoprowski: merging requires a working directory to resolve conflicts21:11
tewecske left21:12
cbreak no working directory equals no merging21:12
charon jankoprowski: indeed, needs a worktree to even run21:12
ksawicki joined21:12
cbreak lmarcetic: unmake?21:12
charon (in theory it could run with just an index, but nobody cared enough to make that possible)21:12
jankoprowski ok - so while push i need some extra working directory to merge just after push?21:12
cbreak lmarcetic: git does not track directories21:12
jankoprowski: no21:13
tore_ left21:13
cbreak jankoprowski: pushing does never require a merge21:13
charon lmarcetic: if you mean "how do i forget all git metadata about a repository", then the dangerous answer is 'rm -rf .git'21:13
lmarcetic charon: and there's no safe answer21:13
?21:13
charon mv .git /some/place/save/dont_lose_this.git21:13
argh, misspelled "safe".21:13
lmarcetic XD21:13
HG`` left21:14
urkud joined21:15
LekeFly left21:15
lastk joined21:15
charon jankoprowski: i think you have an XY problem by the way. what are you really trying to solve?21:15
lmarcetic yay! clean history21:16
jankoprowski charon: I try to merge things send to review when they pass21:16
lmarcetic charon: thanks21:16
lmarcetic left21:16
jankoprowski And when the merge fail - ask developer to rebase their branch and push again but this time - merge automatically21:17
jutaro left21:17
jankoprowski idea is there is 'master' is read-only, and only review system can merge to it21:17
and only branches applied by reviewers will be merged (by review system) to master.21:18
ksawicki left21:18
jstemmer left21:18
charon jankoprowski: sounds like you are reinventing gerrit. but yeah, merge in a temporary tree, and if it conflicts just back out.21:18
jankoprowski charon: I implementing gerrit functionality on top of reviewboard21:19
brian_g joined21:19
bbrandon joined21:21
cesario_ joined21:22
ISF left21:22
Ryback_ left21:22
legumbre left21:23
jankoprowski charon: I love ReviewBoard but this one of two features which is missing21:23
legumbre joined21:23
v4n_ joined21:23
cesario left21:24
cesario_cesario21:24
cbreak jankoprowski: just let the revierwer merge in their own clones21:24
that's faster and easier anyway21:24
linusoleander_ joined21:24
LekeFly joined21:25
v4n_ left21:26
yarvin left21:26
Murr joined21:27
RaceCondition left21:27
abhishek_ left21:27
SethRobertson joined21:27
jankoprowski cbreak: ok21:28
erichammond left21:28
jankoprowski cbreak: I will use Your advice - but here is the thing21:28
If ReviewBoard can not merge21:29
and send e-mail to developer asking about rebase21:29
I want to "short" time between rebase and merge21:29
Here is the thing21:29
While "push", this after rebasing21:29
cbreak time between rebase and merge?21:29
either rebase or merge21:29
LongBeach left21:30
jankoprowski cbreak: developer can not merge to 'master' because 'master' is read-only21:30
cannonball left21:30
jankoprowski they can rebase their own branch and send one more time to review.21:30
cbreak they have their own master21:30
jankoprowski They can not push their own master21:30
because of gitolite21:30
cbreak they don't have to21:30
they can push it to their own branch or own repo21:30
jankoprowski cbreak: and this gives him nothing because building machine compile cody only from 'center' repository which is gitolite repo21:31
ap3mantus joined21:31
Samual_ joined21:31
jankoprowski so21:32
they must rebase their own branch21:32
and push it again21:32
cbreak they are clearly not supposed to use the building machine21:32
they don't have to rebase21:32
as I said above21:32
merge or rebase21:32
g3d left21:32
cbreak both just adds the disadvantages of both21:32
for relatively small gain21:32
jankoprowski cbreak: You don't get it aren't you?21:32
cbreak more than you apparently21:33
jankoprowski I do not think so.21:33
Do You know how I use rebase?21:33
cbreak of course...21:33
jankoprowski To assure that merge will be fast-forward21:33
cbreak you don't need to merge if you use rebase21:34
jankoprowski I must fast-forward 'master' branch pointer21:34
cbreak because you can rebase your history onto the tip of the branch you want your changes to be in21:34
jankoprowski to ocompile this new stuff21:34
cbreak after you've done that, there's no need to merge anymore21:35
you can just reset your target branch to the new head21:35
jankoprowski really?21:35
cbreak that works without a working directory21:35
farktronix_ joined21:35
cbreak fast forwarding is NOT merging21:35
tearsong left21:35
cbreak fast forwarding is what happens when you push, for example21:36
btanaka joined21:36
Textmode left21:36
jankoprowski But I always use --no-ff21:36
even if merge is fast-forward21:36
cbreak then you merge.21:36
linusoleander_ left21:36
jankoprowski yes21:36
farktronix left21:36
farktronix_farktronix21:36
jankoprowski I need this21:36
cbreak and add the disadvantages of merge on top of the disadvantages of rebase21:36
jankoprowski greate21:36
cbreak at least some of them21:36
jankoprowski fast-forward, even with --no-ff - if does not conflict - they still does not conflict21:37
cbreak but such a merge is also guaranteed conflict free21:37
jankoprowski and this is the point21:37
cbreak fast forward and no-ff are mutually exclusive21:37
jankoprowski I need to ask about rebase21:37
urkud left21:38
jankoprowski to do merge --no-ff without conflicts on reviewboard21:38
ok, sorry I must go to sleep now because roommate going sleep21:38
thank You for discussion21:38
buy21:38
cbreak night21:38
jankoprowski left21:39
psoo left21:39
q0rbanq-rban21:39
atyz left21:40
urkud joined21:40
ericbarnes left21:41
PabloM left21:43
helvete joined21:43
ThomasLocke left21:44
gkmngrgn left21:44
TrineLocke left21:45
btanaka left21:47
[intra]lanman left21:48
SimonNa joined21:49
Murr left21:50
versatiletech_ joined21:51
booginga left21:51
pizza_ left21:52
a|i joined21:52
a|i how can I update only 1 of the git submodules?21:52
thiago_home cd submodule; run command to update21:53
a|i what's the command?21:53
git submodule update?21:53
rzec joined21:53
rzec is it possible to use git revert on a specific file instead of reverting every file in the commit?21:54
a|i left21:54
[intra]lanman joined21:55
versatiletech left21:55
versatiletech_versatiletech21:55
warthog9 joined21:55
offby1 not directly, but sorta21:55
cbreak rzec: man git-checkout, use it in file mode. or git revert -n and then only commit the file you want21:55
jast rzec: *automatic message* the 'git-checkout' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html21:55
offby1 nods21:55
jophish joined21:57
german__ joined21:57
robgleeson joined21:57
Murr joined21:58
saml joined21:58
BiggFREE joined22:00
merkosh joined22:02
rzec left22:02
denysonique joined22:03
denysonique left22:03
denysonique joined22:03
_psychic_ left22:04
dv310p3r left22:04
banghouse left22:05
versatiletech left22:05
helvete left22:05
cilly left22:06
EricInBNE joined22:06
Murr left22:08
Leemp2 joined22:10
debiminho joined22:10
debiminho left22:10
Leemp left22:11
gebbione joined22:11
jophish left22:11
Leemp2 left22:11
Leemp3 joined22:12
d1zzy is there a way to safely rename a ref? (I can't just move files around, for example if I have packed-refs enabled)22:12
nullvariable left22:12
d1zzy git update-ref seems to only set/remove refs, not rename them22:12
jonshea left22:12
wereHamster to rename a ref, create the new one and delete the old one22:12
Murr joined22:13
d1zzy that won't rename it22:13
thiago_home if it's a branch, git branch -m22:13
d1zzy in the case of annotated tags22:13
creating a new one will create a new tag object22:13
different SHA122:13
thiago_home you can't rename an annotated tag22:13
d1zzy I want to keep the original tag object22:13
thiago_home: hmm22:13
thiago_home the name is part of the tag22:13
wereHamster d1zzy: eh? git update-ref refs/tags/new refs/tags/old; git update-ref -d refs/tags/old22:13
d1zzy thiago_home: oh you're right, silly me22:13
dbgster left22:13
d1zzy it's n the tag contents22:13
wereHamster so you want to *rewrite* a tag22:14
or, amend22:14
d1zzy then I guess, related question22:14
why is the tag name part of the tag contents?22:14
wereHamster because you made it so22:14
thiago_home because tags aren't meant to be renamed22:14
d1zzy do software use the name inside the contents without the ref?22:14
thiago_home tags are final22:14
bonhoffer joined22:15
da1l6 joined22:15
thiago_home they are done once and done correctly22:15
d1zzy what they point to is final and I don't want to modify that22:15
bindaas left22:15
thiago_home you don't rename, you don't move tags22:15
wereHamster d1zzy: which software?22:15
d1zzy and that is the basic feature of a tag in general in SCMs22:15
dsop joined22:15
[intra]lanman left22:15
d1zzy wereHamster: I don't know, any software interfacing with git repos22:15
wereHamster d1zzy: the tag message is just like a commit message22:15
d1zzy but it seems interesting that tha name is part of the(immutable) contents22:15
wereHamster you can put anything in there you want22:15
d1zzy it is like if they want to allow softare to find tag names without their refs22:15
wereHamster: yes but the tag name is a special header, it's not part of the message22:16
wereHamster the tag message doesn't necessarely have to be the version. You can write a normal comment there22:16
no, tag name is not a special header22:16
lekefly_ joined22:16
d1zzy thiago_home: what purpose does that serve? (can't rename, move tags)22:16
wereHamster: then we can ignore it and support tag renaming :)22:17
wereHamster what do you mean by 'tag renaming'? Rename the ref? Or rewrite the tag message?22:17
thiago_home because tags are supposed to sign a release cryptographically22:17
wereHamster totally different things22:17
LekeFly left22:18
thiago_home the SHA-1 of the tag signs the exact tag22:18
d1zzy wereHamster: the tag name22:18
thiago_home so the name is part of it22:18
wereHamster d1zzy: you can do that. just use update-ref to rename it22:18
d1zzy thiago_home: wereHamster just said the name is just an arbitrary string in the contents and not special :)22:18
wereHamster no, I did not22:18
mklappstuhl left22:18
d1zzy (d1zzy) wereHamster: yes but the tag name is a special header, it's not part of the message22:18
(wereHamster) no, tag name is not a special header22:18
so which is it?22:19
wereHamster what do you mean by tag name? refs/tags/foo ?22:19
cbreak d1zzy: git cat-file -p it and look yourself22:19
d1zzy wereHamster: I mean the "tag <foobar>" line in the git cat-file -p <tag> output22:19
thiago_home the name of the tag is a special header22:19
d1zzy cbreak: I've been doing that22:19
wereHamster d1zzy: oh that, that's part of the tag object, and thus immutable22:20
saml left22:20
andrewpthorp joined22:20
p3rror left22:20
d1zzy yes, I undestand that everything there is immutable, d0h22:20
but22:20
why was it added there in the first place22:20
what purpose does it serve to have the tag name stored in its contents?22:20
wereHamster because tags are supposed to be immutable22:21
d1zzy when you say that, you mean certain aspects about them are immutable22:21
most importandly where they point at22:21
wereHamster no, all aspects should be immutable. All of git expects that tags don't change22:21
d1zzy why was it decided that the tag name should be immutable?22:21
wereHamster if you want a 'movable' tag, use a branch22:21
ejo joined22:21
d1zzy I'm not asking how it is, that is clear to me now, I'm asking why it is so22:22
a branch would also allow to update where it points to22:22
which is not good22:22
wereHamster I'm telling you the why: tags are supposed to be immutable22:22
d1zzy yes but when deciding how to design the tags (in git) it was decided to put certain information in it that is immutable22:22
ejo Hi. My project structure is like: /virtualenv/MyProj/myproj. I accidentally ended up with .git in both MyProj and myproj dirs. What's the best way to fix the situation and get back to just one .git?22:22
d1zzy why some information like the tag name was added while other stuff was not22:22
wereHamster which other stuff wasn't added?22:23
lunks left22:23
d1zzy say the current branch in the repo when the tag was created (which is irrelevant, but why was it considered tha tthe tag name is relevant?)22:23
bonhoffer if there is a branch on github that is a remote branch of mine and i want to look for any recent changes, what is the best workflow?22:24
d1zzy wereHamster: anyways, it's a rather pointless discussion, things are as they are, just seem strange a little bit that the name was included :)22:25
cbreak d1zzy: the name of a tag has certain relevance22:25
wereHamster d1zzy: what would be the usecase where you would want to change the name?22:25
cbreak if you sign a tag with your gpg key as v1.0-alpha22:25
and some random guy renames it to v1.0-release22:26
that changes the appearance of the tag quite a bit22:26
bonhoffer i was thinking to pull in the remote and then do a diff22:26
cbreak it influences git describe too22:26
d1zzy wereHamster: for example if I reorganize things in a project, I move certain tags under "deprecated/" but keep their last component name22:26
cbreak bonhoffer: no need to pull22:26
d1zzy cbreak: ok22:27
cbreak do a git remote update22:27
and then git diff/git log at your heats content22:27
bonhoffer cbreak: ok, thanks22:27
would gitk be one way to see the difference?22:27
or mergetool?22:27
cbreak no22:27
gitk is a tool to see the history22:27
maybe it shows the patches of a commit, I don't know22:27
git diff is the tool to see differences22:28
git log -p can also do it22:28
bonhoffer thanks, so i'll focus on the remote update22:29
muddo left22:29
cbreak that's probably the least of your problems :)22:29
diegoviola joined22:29
cbreak git remote update will fetch your remote tracking branches22:29
gebbione left22:29
gusnan left22:30
bonhoffer how do i remove a remote?22:31
kelvie_ joined22:31
patrikf did you even try to find out?22:31
cbreak bonhoffer: man git-remote22:31
jast bonhoffer: *automatic message* the 'git-remote' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-remote.html22:31
bonhoffer yes22:31
babilen left22:32
cbreak look for remove22:32
bonhoffer i googled it, but didn't see a huge harm in asking . . .22:32
cbreak: thanks22:32
andrewpthorp left22:32
airborn left22:32
namemon left22:33
d0k left22:33
budsondixon joined22:34
bonhoffer cbreak: easy, thanks22:34
Agos left22:35
eijk left22:35
bonhoffer cbreak: do you have a good reference to understand the output of git log -p?22:35
cbreak no22:36
bonhoffer for example, the difference between +++ and ---22:36
cbreak it's more or less normal diff syntax22:36
FauxFaux Plusses mean added, minuses mean removed. ¬_¬22:36
bonhoffer FauxFaux: yeah, but three, what does that mean?22:37
mando joined22:37
FauxFaux It's suspicious that they only appear on the filename line, isn't it.22:37
v0n left22:38
bonhoffer very22:38
so should i look for ++ too?22:38
wereHamster bonhoffer: http://en.wikipedia.org/wiki/Diff#Unified_format22:38
bonhoffer wereHamster: thanks!22:38
threeb left22:39
nevyn joined22:40
warthog9 left22:43
mklappstuhl joined22:44
MonsieurLu left22:44
cesario left22:44
pizza_ joined22:45
envi_laptop left22:45
irc2samus guys I was reading this article: http://stevenharman.net/blog/archive/2011/06/09/git-pull-with-automatic-rebase.aspx which claims that merge-commits break git bisect, is that the case? anyone can explain a bit more about it?22:45
ostolvis joined22:45
LiamH left22:46
joel_falcou_ joined22:48
joel_falcou left22:48
cyphase left22:50
cyphase joined22:51
Epicide joined22:52
kipras left22:53
mkanat left22:54
ksawicki joined22:55
keyo joined22:55
marc_kdab_ left22:55
joel_falcou_ left22:56
thiago_home left22:56
wereHamster not true22:57
veronatii joined22:57
ksawicki left22:57
wereHamster he doesn't even explain why merges break bisect...22:57
helvete joined22:58
muddo joined23:00
nevyn^ left23:00
irc2samus left23:01
RobertLaptop left23:01
f0i left23:04
amerine_ left23:05
hobodave left23:05
lunks joined23:06
kenichi left23:07
ap3mantus left23:07
marc_kdab_ joined23:08
Murr left23:10
ExtraSpice left23:12
normanrichards left23:12
Ricki left23:12
german__ left23:13
N0va` joined23:13
icwiener left23:14
boombatower left23:15
envi_laptop joined23:16
muddo left23:17
Sonderblade left23:17
notjohn left23:18
radarek left23:18
workmad3 left23:19
joel_falcou joined23:21
ki__ left23:22
nevyn^ joined23:22
TeckniX left23:22
p3rror joined23:24
dan23232 left23:24
Danielpk left23:24
Murr joined23:25
german__ joined23:25
avocado joined23:26
Slix` joined23:26
replore joined23:27
erichammond joined23:28
replore left23:29
Morphous left23:29
malumalu left23:31
Chillance left23:31
agile joined23:34
muddo joined23:36
fedesilva left23:36
Murr left23:37
pantsman left23:38
avocado i have a remote repo with a post-receive hook that just has "git checkout -f" in it but when i do something like "git push web sillybranch", the hook only checks out master. anyone know where i can read the branch from in that post-receive hook?23:39
ki__ joined23:39
stringoO joined23:40
Yuuhi left23:40
dbgster joined23:42
ap3mantus joined23:42
tvw left23:42
brian_g left23:42
keyo avocado: why not just use the right branch23:42
brian_g joined23:43
Murr joined23:43
brian_g left23:44
brian_g joined23:44
rendar_ joined23:45
rendar_ left23:45
mando left23:47
Tac left23:47
Morphous joined23:47
avocado i don't know how to do that on bare repos23:47
rendar left23:48
apocalyptiq joined23:49
wereHamster avocado: man githooks23:50
jast avocado: *automatic message* the 'githooks' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/githooks.html23:50
replore joined23:51
replore left23:52
Murr left23:55
yota_ joined23:55
yota_ left23:56
amouge joined23:57
boombatower joined23:57
amouge hi all.. Trying to use git on my centOS 5.5 server and getting this error: git: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory23:57
aidalgol joined23:57
N0va` left23:57
amouge libiconv is installed23:57
can anyone help me diagnose this problem?23:57
wereHamster amouge: how did you install git?23:58
amouge wereHamster: i believe from source23:58
i cant remember now :/23:58
its been a while23:58
ShooterMG left23:58
wereHamster compile it again23:58
bpalmer joined23:59

Logs Search ←Prev date Next date→ Channels Documentation