IRCloggy #git 2007-08-13

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.

2007-08-13

Romster joined00:08
Fhoxh joined00:17
doublec left00:21
ferdy left00:36
jeffpc left01:20
stouset joined01:29
nzkoz joined01:31
amf left01:34
_spanner_ left01:45
nashdj joined01:53
aroben left01:54
orospakr left02:00
vial_afk joined02:09
doublec joined02:12
vial_afk left02:13
dwmw2_gonedwmw2_PVG02:21
jasam left02:34
com4 joined02:34
bdiego joined02:37
Beket joined03:00
com4 How can I pull updates from my origin in a bare repository?03:05
cd /03:06
Beket git branch --track mylocalbranch origin/branchX ?03:06
com4 Won't that track a specific mirror?03:08
I'm new to git03:08
Beket so am I, perhaps the more advanced users may shed some light03:08
com4 but what I'm trying to do is have my repositories that I'll use over ssh, but I would like to publish them over http for others to pull03:08
so i created my personal copy, then i git clone --bare /home/..../project03:09
KirinDave_ joined03:12
KirinDave_KirinDave03:13
Tv com4: you don't normally pull to bare repos03:46
aroben joined03:46
Tv com4: pull somewhere else and push to the bare repo03:46
aroben left03:46
aroben joined03:47
Tv com4: or just push directly, if you control the source repository03:47
com4 Tv: Ok... that's what I ended up doing :P03:47
Tv: out of curiosity, can I push a branch to the public repository?03:48
Tv if you have write access, why not03:48
com4 hah, thanks03:48
kylem left03:58
nzkoz left03:59
bdiego left04:07
janm joined04:13
robinr joined04:19
kanru left04:19
fhobia_ left04:22
rkaway1 left04:27
rkaway1 joined04:29
Fhoxh left04:30
Beket Suppose I create a local branch and I want to push it to a remote repository. Any hints? Thanks04:40
Rednaxela left04:42
Beket Ah I found it, thanks anyway :)04:55
syscrash_ joined04:56
syscrash left05:02
madewokherd left05:03
nink|gone left05:08
PugMajere left05:08
PugMajere joined05:09
nink|gone joined05:09
lyakh joined05:20
spuk left05:23
robewald|home joined05:28
robin left05:32
dwmw2_PVGdwmw2_gone05:34
aroben left05:40
doublec left05:45
doublec joined05:45
devogon joined05:47
lyakh left05:56
meandtheshell joined06:02
meandtheshell left06:02
kanru joined06:03
dduncan left06:12
meandtheshell joined06:17
KirinDave left06:18
dkagedal joined06:22
bentob0x joined06:27
robinr left06:30
dkagedal_ joined06:48
dkagedal left06:50
Dodji joined06:53
hliusv561 left06:56
doublec left06:57
evilchelu joined07:06
KirinDave joined07:06
reuss_ joined07:13
reuss_ how do i pull from a remote tracking branch? .. "git-pull origin refs/remotes/CVS/HEAD" works, but is there a way where you do not have to specify it with refs/.... ? .. like git-pull origin CVS/HEAD?...07:15
dkagedal_ left07:15
elmex joined07:17
reuss_ left07:24
matled left07:25
matled joined07:25
LotR left07:25
bdowning joined07:35
bdowning_ left07:35
KirinDave left07:39
Romster left07:43
Romster joined07:44
mgrimes joined07:49
branstrom_ joined07:51
branstrom left07:51
johan-s_ left07:55
LotR joined07:56
kanru left07:57
kanru joined07:58
janm left08:00
hliusv561 joined08:03
dkagedal_ joined08:27
johan-s joined08:41
reuss_ joined08:49
aruiz joined08:58
mgrimes left08:58
elmex left09:03
elmex joined09:05
johan-s left09:06
rkaway1 left09:13
rkaway1 joined09:14
nikodemus joined09:19
johan-s joined09:23
johan-s left09:31
johan-s joined09:31
haskill joined09:35
Roomster joined09:43
Oeje1 joined09:45
palmcron left09:45
bentob0x left09:48
Romster left09:48
bentob0x joined09:50
ferdy joined09:54
Oeje1 left10:06
johan-s left10:06
johan-s joined10:10
Beket I pushed my local branch back to mainline, but nothing appeared in log. Is it because of a fast forward merge? How do I fix it ?10:27
whee joined10:31
hliusv561 Beket: Do those commits appear in log of branch you pushed them to?10:33
Beket hliusv561, yes they do appear in branche's log10:34
hliusv561 Beket: Pushes (unless forced) are always fast forward. And even when forced, they never create merges.10:35
Beket Thanks hliusv561, I didn't know that. I guess next I'll merge locally and the push10:35
time*10:36
hliusv561 Beket: The rule is: You have to have working tree (and assocated index) to perform merges.10:37
Beket: Because otherwise there is absolutely no way to handle conflicts.10:38
Beket One is for sure: I need more reading10:38
Sho_ left10:42
tanuki joined10:42
Sho_ joined10:48
Roomster left10:50
Beket hm, it is not possible to delete a remote origin/branch10:51
Roomster joined10:51
Beket just exclude it from your listing with git-branch -d -r origin/branch, right ?10:51
evilchelu hi, i have a question about stuff between two svn repositories10:56
i wrote a decent description of it here: http://pastie.caboo.se/8716810:56
erm, s/decent/bit more decent/ :)10:57
chris2 joined11:11
fultilt Beket: You *can* delete it from the remote. See "man git-push". Basically, "git push origin :mybranch".11:11
fultilt left11:11
jasam joined11:14
RoomsterRomster11:16
jasam hi, "git diff" shows differences between two files (as "diff" command does") when called from the tests for Git, how can it achieve this? I cannot find how that behaviour is changed, or a reference in documentation, it is a mistery for me :-/11:32
s/mist/myst/11:36
cortana left11:39
cortana joined11:40
stouset left11:51
integral joined11:52
jcollie left11:52
integral left11:53
stouset joined11:53
stouset left11:55
stouset joined11:56
henr_k joined12:08
dorileo joined12:14
lcapitulino joined12:17
Beket Suppose I changed all my file permissions in my source tree, how do I push these changes remotely ? Do I have ti git add * and then git commit ?12:17
pdmef left12:19
pdmef joined12:20
mountie joined12:25
hliusv561 Beket: If you don't have done other changes, you can do "git add -u" and then "git commit". But beware that git only stores the executable bit.12:25
Beket double thanks hliusv561 :)12:26
jcollie joined12:31
jasam left12:33
Beket left12:33
Yuuhi joined12:38
stouset left12:42
reuss_ ... git-pull origin refs/remotes/CVS/HEAD ... works for me .. but is it the "right" way to pull from at remote branch? .. isnt there something like git-pull origin CVS/HEAD ? ...12:47
binary42 left12:57
johan-s left13:10
johan-s joined13:13
bdiego joined13:26
schofield joined13:34
jcollie left13:36
schofield left13:37
stouset joined13:41
Sho_ left13:41
kylem joined13:45
spuk- joined13:49
tanuki left13:51
d0k joined13:58
rtmfd left14:04
rtmfd joined14:04
sirPalook joined14:08
lcapitulino left14:16
lcapitulino joined14:17
KirinDave joined14:24
orospakr joined14:30
sirPalook left14:38
z3ro left14:38
fredrik joined15:06
dkagedal_ left15:14
goloo joined15:16
fredrik left15:18
dorileo left15:22
branstrom_ left15:24
branstrom joined15:31
Oeje1 joined15:31
reuss_ left15:33
mnemoc hi, how can i escape a ; on the value of a config variable?15:36
maurizio joined15:39
nashdj left15:39
binary42 joined15:49
ft left15:54
syscrash_syscrash15:56
orospakr left15:57
alley_cat joined15:58
orospakr joined15:59
KirinDave left16:00
johan-s left16:02
binary42 left16:07
kumbayo joined16:12
binary42 joined16:17
kanru left16:24
fhobia joined16:28
KirinDave joined16:32
bla joined16:41
bla Hi.16:41
strangy joined16:44
fhobia left16:45
aruiz left16:45
bla Is it possible to share git repos via plain http? Or there REALLY has to be special daemon for it?16:46
kanru joined16:47
bdiego bla, you only need apache (with DAV enable) to use http16:52
loops bla, you can publish a git repo via http, you only need the daemon if you want the benefits of publishing a repo using the native Git protocol16:52
bla Hm.16:56
bdiego, there's already a DAV enabled for SVN support. (I don't want to place there another module...)16:57
I'm just unable to git clone or pull from http:// address.16:57
loops, you mean I can e.g. tar git repos on http, then download it and use, yes?16:57
loops bla, you only need DAV support to allow updating of the repo. if you just want to publish a repo, it's not needed16:57
bla So copying repos on http and calling git clone http:// should work.16:58
loops bla, no. git supports cloning over http. git clone http://yoursite/repo16:58
bla Can you try calling: git clone http://thera.be/my_public/my_projects/HPPB/16:58
Please?16:58
Maybe i've just f* something up. ;)16:59
It should be bare .git directory?16:59
Yep.16:59
Right.16:59
Works.16:59
Thanks. ;)16:59
loops bla, make suer you run git update-serer-info after each update to that repo16:59
bla, chmod +x .git/hooks/post-update should do that automatically for you each time17:00
bla If that apache already serves SVN repos with DAV shouldn't it be possible to push/pull from GIT repos there?17:00
jackbravo joined17:00
bla Some paths should be specified I guess.17:00
loops i suspect you could make it work, yeah17:01
bla I see there example, but it was commented out for SVN. I though that GIT would use like SVN it's own module.17:01
rlb3_work left17:01
bla Cool that it doesnt. ;d17:01
loops you might want to take a peek inside of Documentation/howto/setup-git-server-over-http.txt, might have something to help17:02
strangy left17:02
robin joined17:03
loops bla, for whatever it's worth cloning over the native git protocol (which means you need to run the git daemon) has some nice benefits. If it's possible, it's usually worth the effort to run it.17:04
dorileo joined17:11
aroben joined17:12
praka joined17:13
KiBi left17:14
bla ;-)17:19
It would be possible.17:19
For 'group coding' I usually create SSH account with git repos to which everybody can push.17:20
Beket joined17:20
bla I just wanted to find a method of sharing GIT repos without giving someone more access.17:20
Beket mob:)17:21
_bdiego joined17:21
maurizio left17:21
bdiego left17:26
GyrosGeier joined17:28
johan-s joined17:29
Beket left17:32
LotR what are the benefits of git-daemon over serving over http?17:32
vmiklos being able to push, shallow clones, less network traffic, etc17:34
GyrosGeier LotR, the git daemon creates packf containing just the objects people need on the fly17:34
vmiklos, git-daemon can push?17:34
I thought that was ssh only still17:34
vmiklos afaik yes17:34
also http+dav can17:34
Aeternus_ joined17:35
DmitryK joined17:37
DmitryK Is repo.or.cz down?17:37
kergoth is there a way to dump all refs from which a given commit is reachable from? git-name-rev seems to do it, but it only shows the most recent tag.. what i'm more often looking for is the first tag it was reachable from, so i know when it went in, in the versioning history17:37
s/ from\?//17:37
lcapitulino DmitryK: I can't reach it either :(17:39
lcapitulino fears17:39
DmitryK pasky: Hi, is repo.or.cz down?17:40
lyakh joined17:43
praka left17:45
DmitryK left17:50
rlb3_work joined17:54
jengelh joined17:54
jengelh What makes a pack (during `git pull`) a thin pack, and when does it become thick/fat?17:54
http://rafb.net/p/Vzyob570.html18:00
robin strange git1.5.3-rc4/cygwin problem...18:05
I've been snapshotting version using git; i.e. git add path;git add -u;git commit -m "<blah>"18:05
and for some reasons a number of files show up as new files, but commit never writes them so they stay "new" forever yielding empty commits18:06
instead of no commit when there is no change.18:06
kanru left18:07
robin i've not had time to produce a small example yet, but i suspect the optimization junio did earlier, since 1.5.2 did not have the problem18:08
kanru joined18:12
ft joined18:17
_bdiegobdiego18:17
DmitryK joined18:22
DmitryK left18:24
dduncan joined18:24
KiBi joined18:26
hliusv561 robin: You don't happen to have GIT_INDEX_FILE set or something?18:30
eikke joined18:30
eikke is there any git-cvs like git-svn ?18:31
capisce left18:32
siprbaum eikke: you could use git-cvsimport and git-cvsexport (i've used it once for a project at the uni)18:32
DmitryK joined18:35
DmitryK left18:35
KiBi left18:35
KiBi joined18:36
Arjen joined18:36
robin hliusv561: no18:38
but rm'ing .git/index first resolves the problem18:39
(I think....)18:40
kanru left18:40
eikke siprbaum: any idea: I did git-init-db, then try git-cvsimport, but says the origin branch doesnt exist18:42
git-branch origin doesnt work as there is no master branch yet *-)18:43
and it'd be kinda stupid to make a first commit using some dummy file I guess18:43
robin eikke: start without a git repo18:43
siprbaum yep. thats what i would suggest, toot18:43
kanru joined18:44
eikke right, must have done something wrong :)18:44
fultilt joined18:44
eikke hmm, now the dir is empty18:50
master branch18:50
git-pull . origin says its uptodate18:50
pasky changed the topic to: 1.5.2.4/1.5.3-rc4 | Everyone asleep or clueless? Try [email@hidden.address] | Channel log http://colabti.de/irclogger/irclogger_log/git | Linus on git: http://youtube.com/watch?v=4XpnKHJAok8 | Mailing list archives: http://news.gmane.org/group/gmane.comp.version-control.git/ | repo.or.cz down for this night (DNS trouble)18:52
kergoth hmm, from a script, how to i check if a given commit is reachable from a given ref?18:52
pasky changed the topic to: 1.5.2.4/1.5.3-rc4 | Everyone asleep or clueless? Try [email@hidden.address] | Channel log http://colabti.de/irclogger/irclogger_log/git | Linus on git: http://youtube.com/watch?v=4XpnKHJAok8 | Mailing list archives: http://news.gmane.org/group/gmane.comp.version-control.git/ | repo.or.cz down for this night (DNS trouble, ip = 62.24.64.27)18:52
bla left18:52
aroben left18:53
pasky changed the topic to: 1.5.2.4/1.5.3-rc4 | Everyone asleep or clueless? Try [email@hidden.address] | Channel log http://colabti.de/irclogger/irclogger_log/git | Linus on git: http://youtube.com/watch?v=4XpnKHJAok8 | Mailing list archives: http://news.gmane.org/group/gmane.comp.version-control.git/ | repo.or.cz's DNS is in trouble, ip = 62.24.64.2718:53
pasky :)18:53
aroben joined18:54
robin kergoth: try git-rev-list18:54
aroben left18:56
nud joined18:56
kergoth k, thanks19:03
robin kergoth: not sure it helps, seems it is too smart .. :(19:04
reuss_ joined19:04
kergoth hmmm19:04
robin left19:09
whee is it easy to create a new branch without a parent?19:11
gitster it is not. why would you want to do something like that?19:14
whee I want to have a repository with not-really-related code for some tools19:15
gitster a repository's history can have more than one roots, but the normal reason such roots exist in a repository is because they originated as a different history from an independent repository and then later merged.19:15
whee but seperated somehow, maybe submodules would be better19:15
clee submodules ftw19:15
whee they're related in that they are for working with the same project, but they are standalone utilities19:16
gitster why would you even want to have a single repository to host the independent bits, it sounds like you are not even merging them.19:16
d0k left19:16
whee there may be a point where they would share a lot of code and I'm lazy and want one repo to worry about :)19:16
gitster if the answer is "to give a single distribution points for users", then the standard procedure is to create them in separate repositories and publish in a single repository as different (and independent) branches.19:17
html/man/todo branches in git.git are managed that way.19:17
whee would submodules also accomplish that?19:17
gitster because the only reason they are in git.git is because of that "single distribution point" convenience.19:17
reuss_ does git-cvsexportcommit handle multiple file additions/deletions? ..19:18
gitster subprojects are orthogonal. you do not have to have submodule commits in the same repository.19:18
robewald|home left19:19
whee I guess here's what I'm going for: the utilities don't depend on each other, might depend on a common library, and I'd like to be able to clone one utility or all of them easily19:20
ideally, it'd be possible to tag them all at once with some common tag19:20
robewald|home joined19:20
doublec joined19:21
gitster sounds like you are talking about a superproject that is tagged with the common tag, that points at individual utility projects as subproject, and common library either as part of the superproject or as another subproject.19:22
whee indeed it does. I'll play with that setup19:25
thanks19:25
bemo gitster: did you get my earlier note (yesterday, maybe?) about "docbook2x-texi" not being available in FC4? (just another datapoint -- no action required)19:29
gitster saw it in the scrollback. did "make && make install" barfed for you? I believe the info stuff is purely optional but otherwise we have a serious problem.19:29
bemo nope, "make && make install" work fine.19:31
gitster Ok, then I wouldn't worry too much about it, thanks ;-)19:31
bemo no problem.19:31
maurizio joined19:32
lyakh_ joined19:32
robewald|home left19:33
lyakh left19:34
dduncan left19:38
adante joined19:40
reuss_ left19:42
aroben joined19:46
tongueroo joined19:51
rjbs joined19:53
rjbs I want to use git-svn to interface with work's svn.19:54
The man page suggests that I can use svn+ssh://, but I get an error when I try to: fatal: I don't handle protocol 'svn+ssh'19:54
robin joined19:57
context people use svn+ssh ? :x19:57
rtmfd left19:57
rtmfd joined19:58
Oeje1 left19:59
crime_minister joined20:01
robin whee: I don't agree with gitster. it *is* easy to create a completely standalone branch. However you must do a simple thing without git commands20:01
EvanCarroll Anyone know how to solve: Cannot get the repository state from [email@hidden.address]20:03
lyakh_lyakh20:03
whee robin: I don't know how much I really want standalone branches if the subproject feature will work20:04
I thought it would be nice to be able to see the log of everything combined, though; I don't know if the subproject stuff does that20:05
robin so we'll keep it a secret until then :)20:05
vmiklos hehe:)20:06
EvanCarroll do I have to do something funky to share a clone over ssh?20:06
robin EvanCarroll: no20:07
is "scraper" your ".git" directory?20:07
EvanCarroll no but I tried ./scraper/.git too ;)20:07
still no joy20:07
I learned that lesson though20:07
robin show us the full clone command20:08
EvanCarroll I don't have the command I used to clone anymore20:08
I'm trying to git pull20:08
I used this command to git-remote-add20:09
git remote add -m -f chason ssh://dealermade@chason:/home/dealermade/Desktop/scraper/.git20:09
robin I do not have ':' between host and path20:09
EvanCarroll ah!20:09
thats an scp thing.20:09
I figured it would be the same way.20:09
still no joy though20:09
robin scp doesn't use ssh://-format20:10
EvanCarroll right.20:10
robin and without "/.git"?20:11
EvanCarroll -- anyway, I have remove the command, deleted the old in ./.git/config and added a new git remote add -m -f chason ssh://dealermade@chason/home/dealermade/Desktop/scraper/.git and still no joy20:11
doesn't work without the '/.git' either20:11
rjbs left20:11
EvanCarroll hrm.20:12
i think this i smy mistake20:12
do you `git pull` from something that was `git remote add` to begin with ?20:13
vmiklos host:/dir, not host/dir if i'm not wrong20:14
EvanCarroll thats what I did first.20:14
it didn't work either20:14
robin suggested I try the latter20:14
robin works here: git remote add -f -m xxxxx ssh://robin@10.3.4.2/home/robin/repos/EGIT.git20:14
oops, wrong one20:14
this one works here: git remote add -f -m xxxxx ssh://robin@10.3.4.2/home/robin/repos/EGIT.git20:15
rtmfd left20:15
robin how hard can it be....?20:15
git remote add xxx ssh://robin@10.3.4.2/home/robin/repos/EGIT.git20:15
EvanCarroll it adds ok, It just does not pull.20:15
now I'm getting bash: git-upload-pack: command not found20:15
even though git-upload-pack is in my path ...20:16
robin can't be20:16
gitster some ssh daemon installations spawn commands without reading user's .bashrc or .bash-profile.20:16
robin not only some20:17
vmiklos openssh reads .bashrc20:17
robin that's standard unix behaviour for what I know20:17
.bashrc20:17
yes20:17
EvanCarroll ah thats most likely it.20:17
that is exactly where I added ~/bin20:18
to $PATH20:18
so how do I add ~/bin to path automagically?20:18
vmiklos :)20:18
export PATH=$PATH:~/bin?20:18
EvanCarroll maybe I'll prefix= make or something, ubuntu is planning on hacking auth_pam to add ~/bin to $PATH20:19
vmiklos: granted, and where do i put it..20:19
vmiklos ~/.bashrc20:19
EvanCarroll vmiklos: the very nature of this convo, is if i put it in ~/.bashrc ssh won't pick it up.20:20
gitster You don't have to. Look for remote.<name>.uploadpack in the configuration manual we ship. This is probably a FAQ.20:20
nikodemus left20:20
palmcron joined20:21
vmiklos ah yes, i just thought about he'll want to pull, too20:21
push*20:21
gitster There is corresponding remote.<name>.receivepack for this exact reason. Don't we have a FAQ entry there at the wiki?20:21
... Ah, or.cz is down or something due to DNS glitch?20:22
EvanCarroll the joys of being the only modern package to default install to ~/bin ;)20:22
down =[20:22
Sho_ joined20:22
gitster Unfortunately, it doesn't change a thing if the default installed to /usr/local/bin if sshd does not look at there.20:23
EvanCarroll good question. (does it by default look in there)20:24
gitster New people would really appreciate it if people add FAQ entries after they learn new things here on #git to the wiki (when it comes back up).20:24
aeruder left20:24
vmiklos gitster: yes, it's in the FAQ20:25
EvanCarroll got a bot in here?20:28
I like bots, that was I can get the solutions I need, without being to much a hinderance20:28
YGingras joined20:29
EvanCarroll 9/10 git errors I get are either too broad for google, or non-existant, ie this doesn't work and just fails20:29
chris__ how can I merge in a branch where a binary file changed?20:29
gitster after trying to do such a merge, what did you get?20:30
rkaway2 joined20:30
rkaway2 left20:30
rkaway1 left20:30
rkaway1 joined20:30
gitster "conflicted, please fix up by hand"?20:30
chris__ error: Cannot merge binary files: ...fatal: Failed to execute internal merge...Merge with strategy recursive failed.20:30
gitster Ok.20:31
YGingras hi, I have a branched that I initially cloned with scp, not git clone, iirc, now I try to merge it but I get "/tmp/yould/ - not something we can merge", is there anything that I could do?20:31
gitster Now, it wants you to create a merged file in your work tree and "git add" the result. In order for you to do so, you have access to (upto) three versions of that file, in the index.20:31
chris__ my command was: $ git-merge --no-commit --squash remotes/trunk20:32
gitster What does "git ls-files -u" say?20:32
YGingras git log shows common commits in the history20:32
chris__ gitster: nothing20:33
gitster warns YGingras that the last comment is not meant for him -- he is talking to chris__.20:33
YGingras gitster: I figured that out : )20:34
doublec left20:34
YGingras should I pull from my new repo and try to merge from the old head?20:35
gitster YGingras: I am getting an impression that it is not such a fundamental error but an error in your command line syntax.20:36
chris__ gitster: (I'm using 1.5.3.rc2.4.g726f9)20:36
gitster "now I try to merge it but I get ..." does not say what you did to "try to merge".20:36
You might have said "git merge /that/directory", but that is a plain syntax error. git merge does not take repository name as parameter.20:37
YGingras gitster: maybe, I did: rsync -av remote:~/yould/ /tmp/yould/; cd ~/yould; git merge /tmp/yould20:37
jasam joined20:37
gitster Most likely you meant "git pull /tmp/yould $some_branch_name"; which branch you tried is not clear to me but probably it is clear to you ;-)20:38
chris__: I see merge-recursive is not being nice there. It should say "I cannot merge this path", but that is not a good reason to abort the entire merge. "git merge -s resolve <other parameters you gave it>" would probably be able to unblock you in the meantime.20:39
YGingras gitster: excellent!20:40
gitster did it work (perhaps $some_branch_name == 'master')?20:41
chris__ gitster: It did give me the path, but it didn't tell me about the other paths it left in a conflicted state.20:41
spuk- left20:41
YGingras gitster: but it fastforward the whole thing, would it warn if there was anyconflicts? Aren't pull always fast forwarding?20:41
gitster: I did "head"20:42
spuk- joined20:42
EvanCarroll gitster: hrm, you what might be kind of sexy. -- the man for git-fitch-pack says it will first look the file in your path, on the remote machine if your path is ~/bin though it will look for the expanded ~/bin, rather than ~/bin -- it would be nice if it let ssh expand ~/bin on the remote machine rather than doing it for ssh ( because I'm not sshing as the $USER )20:43
git-fetch-pack20:43
gitster YGingras: if "git pull /tmp/yould head" fast-forwarded, then (1) the rsynced repository had a branch called "head" and (2) that was truly ahead of your current branch.20:43
EvanCarroll I guess that makes the assumption all ssh clients can do home-expansion but it seems to be a safe assumption20:44
gitster chris__: "It" did give me the path? Meaning...? I was looking sideways so I am not following you, sorry. You tried "-s resolve" instead and now you see the binary file's path in the "ls-files -u" output?20:44
YGingras gitster: that's what I presumed but I still had a little doubt. I'm glad that it was the case. Thanks for your help20:44
madewokherd joined20:44
chris__ gitster: no, sorry, I meant that the original merge did report the failed path, I just elided it from the error report.20:45
gitster chris__: yes, I know, but merge-recursive I think punts after that and does not give you the rest of the paths that it _could_ have handled, which was what I meant by "not being nice".20:46
chris__ gitster: yes20:46
gitster I'd "reset --hard HEAD" and retry the merge with "-s resolve" if I were you.20:46
chris__ I did a git-reset --hard ORIG_HEAD and then tried again20:46
fatal: Untracked working tree file '.gitignore' would be overwritten by merge20:47
I think the reset --hard didn't really undo what had been done.20:48
gitster Yeah, that is what I meant by merge-recursive not being nice. It probably left it as a part of that failed merge, but because it rudely died in the middle before writing the index out, there is no cue for "reset --hard" that the file should be removed. Remove it by hand after making sure that you should not have had that file in your tree before you started that merge.20:49
whee is there a nice doc somewhere describing typical submodule usage? git.or.cz appears to be down :|20:49
crime_minister left20:49
_spanner_ joined20:50
gitster At this point typical is probably something the interested users are working to establish with their projects right now ;-) Write a nice doc somewhere when you are done ;-)20:50
bentob0x left20:50
alley_cat left20:52
whee :)20:52
gitster I know cgit.git binds git.git as a submodule, so the author may have some notes in which he brags about the way he manages that repository.20:52
whee I am trying it now for maintaining a repository of my kernel config + submodule of the kernel tree20:52
gitster Also msysgit folks use git.git as a subproject.20:52
hliusv561 There does not seem to be recursive commit. Or is it just plain insane idea?20:56
meandtheshell left20:58
robin what would that be?20:59
for subprojects?20:59
EvanCarroll how do you set the upload path in your .git/config?21:00
you know the damn killer about this is the the tutorial git in 5min uses ssh, and no where in there do they have to set an "upload-path" or a fetch-path or any other goffyness.21:02
hliusv561 Recursive commit: Descend to checked out submodules, commit them (if needed), update path with new commit and work upwards. Commit messages are sight problem though.21:04
robin should be the same meessge then21:04
gitster EvanCarroll: I think that is because most sshd admins are kind enough to their users to make sure their .bashrc or whatever is read in non-interactive sessions.21:07
mnemoc hi, how should i escape a ';' as part of a config value?21:08
EvanCarroll ok i think i got this working21:08
I think it works with the git-peek-remote21:08
hliusv561 EvanCarroll: Also, are you sure that the shell on remote side is bash? Ocassionally one runs into environments where bash is not default shell...21:09
EvanCarroll hliusv561: yes, this is just off-the-shell ubuntu.21:09
gitster:when I manually ssh in, git-* is in the path.21:09
gitster: I'm not sure what is happening as far as ssh, if it has a non-interactive login that won't process ~/.bashrc too, or something.21:10
that has to be it21:11
gitster "when you manually ssh in", you are probably talking about an interactive session.21:11
try "ssh that-site /bin/env" or something like that to see what the sshd does for your non interactive connection.21:11
Some sshd installations honor ~/.ssh/environment; you may want to check that as well.21:11
amf joined21:11
cortana remember also that bash does some annoying working around old broken versions of rsh that screws up which dot files are processed when you ssh or rsh in21:12
EvanCarroll I'd rather know how do i add upload-pack into my .git config for a [remote foo]21:12
amf I cloned a SVN repo, and it created the master branch for me, is this a private branch? I don't think I understand the difference of the origin and master branches21:12
lcapitulino left21:13
EvanCarroll amf: iirc origin is an exact replica of the head of the repo you clone, while master is the default head of your own repo.21:13
gitster Something like:21:13
[remote "origin"] upload-pack = "/mnt4/home/evan/bin/git-upload-pack"21:13
otavio left21:14
gitster reminds evan that this is to be done on the local side that invokes "git push", not on the remote side that runs sshd.21:15
EvanCarroll ok this is making me want to scream.21:17
Cannot get the repository state from ssh://dealermade@192.168.1.112:/home/dealermade/Desktop/scraper/.git21:17
hliusv561 EvanCarroll: Is your default shell "/bin/sh" (regardless weither it is symbolic link)?21:17
gitster That URL has extra colon after the IP address which tells you to connect to port 0.21:18
Pistahh joined21:18
EvanCarroll hliusv561: no default shell is /bin/bash21:19
gitster Using "user@host:path" form like "scp" feels much cleaner than URL-ish form ssh://host/path, by the way.21:19
EvanCarroll gitster: I was doing user@hast:path21:20
guess Ishould try wo/ ssh:// then?21:20
gitster "Cannot get the repository state from ssh://dealermade@192.168.1.112:/ho..."???21:20
EvanCarroll gitster: doesn't work either way21:20
the path is /home/dealermade.... the user is dealermade, the host is the ip or (chason) taking out the dns to avoid complexity21:21
chris__ gitster: this is me first time using -s resolve; it's really much less smart than recursive, no?21:21
gitster chris__: not that much for everyday use if you are organized well (i.e. no cross-cross merges nor renames)21:22
EvanCarroll gitster: any ideas? same shitty gitish error either way21:22
Here is a good joke for you: Ever hear of a descriptive git error? No? -- Because there isn't one, jokes on the users... get it?21:23
gitster it feels like some ssh connection error to me, but if you are getting it from git-fetch perhaps running it under sh -x might give us more clues where it breaks.21:23
EvanCarroll gah21:23
gitster: no more clues21:24
just did it21:24
gitster Also I've never used user@host form; I do not offhand recall if we added the support to do that.21:24
robin it work at least21:25
how else would be tell which use to use?21:25
chris2 left21:25
EvanCarroll gitster: i thought you suggested it, I'll go back to ssh:// form then21:25
gitster When I push as somebody else, I always have ~/.ssh/config entry that maps the "Host", "User", and "IdentityFile" entries.21:25
robin IC21:26
gitster What I meant was that I do not offhand know either ssh:// or host:path form supports it.21:26
But robin says it works for me, so...21:26
whee I use ssh://user@host/path and that works21:27
chris__ gitster: I don't understand. It seems like it left conflicts for lots of trivial merges. 274 files worth. most of which are simple insertions or deletions.21:28
gitster Ok, then probably comparing your .git/config with Evan's would probably be a better way to figure this out.21:28
hliusv561 chris__: Yes, resolve is quite stupid.21:28
chris__ for a normal merge, I'd expect 6 conflicts, all involving the same code modified.21:29
It'd be nice if I could use merge recursive, but fall back to resolve for the paths that fail.21:30
EvanCarroll gitster: I'm 100% sure the user@host:path works.21:31
gitster Good to hear it is working, then.21:31
chris__ In fact, I thought that's how merge worked.21:31
EvanCarroll git-peek-remote --upload-pack=/home/dealermader/bin/git-upload-pack ssh://dealermade@chason/home/dealermade/Desktop/scraper/.git works.21:31
however, no variant of git-pull works.21:31
err thats the ssh:// form rather21:32
gitster chris__: Now I do not understand. Where do these 270+ paths come from?21:32
EvanCarroll err damit21:32
one second.21:32
that command does not work21:32
git-peek-remote --upload-pack=/home/dealermade/bin/git-upload-pack dealermade@chason:/home/dealermade/Desktop/scraper/.git21:32
that command does work21:32
that proves that ssh://user:host/path does not work21:32
gitster: ssh://user:host/path is nautilus (gnomefs) addressing iirc.21:33
chris__ gitster: I did: `git-merge --no-commit --squash -s resolve remotes/trunk` and it left 274 unmerged files.21:33
EvanCarroll user:host@path is scp addressing21:33
nautilus is made to look like uri21:33
robin : is for port in generic URLs21:33
gitster chris__: that much I already knew. What I do not understand is where that 274 vs 6 difference comes from. Do you have many criss-cross merges?21:34
EvanCarroll so my conclusion is the newest git does not in fact work over ssh, without depending on modifications to the ssh-server on the remote side.21:34
which is mega shitty.21:34
robin works here21:34
EvanCarroll you must have modified your ssh-server to include the path to git somehow.21:35
robin no21:35
EvanCarroll yes.21:35
robin just installed it in a location that is included in the PATH21:35
gitster we haven't changed much in that area so if it does not work for you then that is not newest vs older. If it does not work it does not work, and we need to know why it doesn't for you and why it does for the rest of them.21:35
chris__ gitster: 6 was an estimate, it turns out I get 9 conflicts by doing the same merge with svn. And I don't know what you mean by criss-cross merges, but I think the answer is no.21:36
gitster Then, we can have a change to make it work also for you.21:36
EvanCarroll gitster: because the rest of you can access git commands by going `ssh user@host cmd` and I can not.21:36
and there is no way I can provide the path. in git pull, only in git-peek*21:36
gitster git-fetch takes --upload-pack command line and git-pull as well, so that might be worth a try, but this really should work with the config settings as well. At least that is how it is designed to be used.21:38
aeruder joined21:39
EvanCarroll I've tried it, no matter what path I give it, it fails21:39
gitster you earlier said that peek-remote with --upload-pack command line option works?21:40
robin EvanCarroll: try setting the path in ~/.ssh/rc21:40
EvanCarroll gitster: yes, thus the problem.21:40
maurizio left21:40
gitster Does "ls-remote" with --upload-pack work? That is what is executed from git-fetch.21:40
robin ~/.ssh/environment is another place. See man sshd(8)21:41
gitster ls-remote is a thin wrapper around peek-remote.21:41
EvanCarroll awkward.21:41
here is one bug, well probably not a bug, but bad error reporting by design.21:42
git-upload-pack will not allow you to prefix ssh address with ssh://21:42
_spanner_ I have a packed archive where there are lots of commits that are unreachable except via the reflog. I can see them with git-fsck --unreachable --full --no-reflogs ... but how to remove them?21:43
EvanCarroll maybe git just has no uniform ssh support, and every one of the 150E150 apps use a slightly modified UI21:43
tongueroo left21:43
gitster Actually ssh:// was bolted on (nobody needed it but somebody wanted it) without much thought.21:44
If there is something that is "uniform ssh support", that is host:path.21:44
EvanCarroll yea, as an outsider I get the impression that happened a lot.21:44
I like the error message, for adding ssh:// fatal: The remote end hung up unexpectedly21:44
because the remote end was successfully contacted.21:44
kumbayo left21:45
tongueroo joined21:46
EvanCarroll git is officially the highest level app I've ever had to trouble shoot with ltrace.21:47
robin isn't that what one usuall does with servers? :)21:48
amf left21:49
jwbjwb_gone21:49
EvanCarroll no, they usually defer to logs or send a -v or something sane to the UI.21:49
http://rafb.net/p/WyfPnx94.html check that out21:51
last two cmds21:51
robin oh, strace/ltrace and wireshard are so simple21:51
wireshark21:51
EvanCarroll shark?21:52
robin looks wierd21:52
EvanCarroll: new name for ethereal21:53
EvanCarroll I know what it is, I use it often.21:53
the difference is I use strace/ltrace/low level network apps, when I'm developing, not when I'm wanting to get other stable software to work.21:54
then I resort to logs, and verbosity of the program.21:54
robin I use whatever I need21:54
logs first ofcourse21:55
nashdj joined21:55
robin i.e. the simplest things first21:55
the git programs don't log much21:55
EvanCarroll gitster: you check out last paste?21:57
evilchelu hi, i did git-submodule add remoterepo localdir. how do i pull the submodule from remoterepo?21:57
hliusv561 EvanCarroll: maybe turn tracing on? "GIT_TRACE=1" or something...21:58
GyrosGeier left21:59
evilchelu oh, figured it out... git pull in the submodule dir22:00
whee left22:02
whee joined22:02
_spanner_ left22:04
EvanCarroll gitster: no , thats exactly the problem22:09
gitster: git-ls-remote is borked.22:09
Dodji left22:12
EvanCarroll gitster: you got it.22:12
the git-* bash scripts blow, I think I'm going to start a project to rewrite them in perl22:12
Tv EvanCarroll: won't that make a windows port just as annoying as the shell thing, if not more?22:13
EvanCarroll like in 07' ORing args is a pretty bad idea.22:13
Tv: no active state makes it easy to wrap perl scripts.22:13
but who cares about windows anyway, the immediate problem is this doesn't work for me, and it is a bug in git-ls-remote.22:14
nikodemus joined22:15
EvanCarroll I guess I hit the nail head on in my estimation of git UI22:17
stouset left22:17
EvanCarroll this thing does all of the upload-pack by itself., git-peek-remote, the one with the working --upload-pack is C22:18
so no copy and pasting code =[22:18
evilchelu anyone having problems getting to git.or.cz? it seems down here22:20
raoul_ joined22:22
hliusv561 evilchelu: I think it (or actually its DNS) is down...22:22
EvanCarroll yes, it is down.22:22
whee left22:22
EvanCarroll anyone happen to have IP?22:22
I wanted to git the source and go to starbucks, I'm serious about rewriting the scripts into perl ;) use Moose and give them nice interface.22:23
evilchelu EvanCarroll: i have the tgz from yesterday if you want22:23
raoul_ hi all - how is $id$ supposed to work via gitattributes? The manpage alludes to it. I've just been adding: # $Id$ for example in my file, checking it in, assuming that would get expanded in place each time, but it doesn't even get expanded. The documentation is a little light. Any ideas?22:24
EvanCarroll nah, I'll wait for git22:24
evilchelu actually, i think that's not on the same site22:25
hliusv561 raoul_: I tried trying the same some time ago, but I couldn't get it to work...22:25
raoul_ Hmm. Interesting.22:25
I'm assuming the idea behind it is akin to what CVS has?22:26
nud left22:26
robfitz_robfitz22:27
rehges evancarroll: pasky.or.cz is down and the backup DNS claims it doesn't know or.cz at all22:27
EvanCarroll raoul_: go watch the linus presentation @google edu22:29
raoul_ Eh?22:31
I was referring to this mythical $Id$ attribute, not GIT itself.22:32
Or was the context too hard to grasp?22:32
zen-master joined22:34
orospakr left22:38
Tv raoul_: and he was referring to why you shouldn't do that..22:40
lyakh left22:40
raoul_ Oh, why? Is there something wrong with $Id$'s use?22:41
Tv most often very much so22:41
i wonder if anyone has written a concise "$Id$ considered harmful"22:42
raoul_ So why is it supported in GIT? My understanding from the gitattributes manpage was that, unlike CVS, the GIT $Id$ mechanism just expands the SHA1. That's fine.22:42
Tv because somebody really really wanted it, i guess22:43
that doesn't make it a good idea ;)22:43
hliusv561 raoul_: And actually the numbers it puts there are for the blob, not for the commit...22:44
jbellis joined22:44
binary42 left22:44
jbellis is there a git analog to "hg grep" ?22:44
hliusv561 jbellis: 'git grep'?22:44
Aeternus_ isn't the problem that that doesn't really make sense as you are then effectively changing the files that made up the SHA1 in the first place :\? or am I completely misunderstanding the issue?22:44
evilchelu hey, any git-svn and git-submodule users around? i'm trying to dcommit a repository with submodules and i get a "bad file" error from git-svn22:44
jbellis cool :)22:44
ferdy left22:45
raoul_ Yes, my mistake, The blob.22:51
crime_minister joined22:52
goloo left22:56
whee joined23:00
Yuuhi left23:11
EvanCarroll I think the easy solution to all of my woes is just to override the (very, (very)) stupid default of ~/bin23:11
doesn't seem like ~/.ssh/rc will change it23:11
jbellis left23:16
doublec joined23:20
robfitz_ joined23:22
whee which doc should I be reading if I want to take a branch and reorder the commits on it?23:27
EvanCarroll error: refs/remotes/chason/HEAD points nowhere!23:29
ok, any idea?23:29
shouldn't HEAD be set by git to whatever the remote has in working dir23:29
doublec left23:31
robfitz left23:33
doublec joined23:36
jackbravo left23:37
henr_k left23:38
jackbravo joined23:38
nikodemus left23:41
matley joined23:43
matley how can i get git now?23:44
EvanCarroll wait for the dns issue to get fixed...23:45
bdowning Use the IP address, which is in the IRC topic? (62.24.64.27)23:49
robfitz joined23:52
matley bdowning, i dont see anything on http23:56
bdowning You may have to add it to your hosts file as repo.or.cz for http to work beacuse of named-based virtual hosting...23:57
Ssh should work fine though.23:57

Logs Search ←Prev date Next date→ Channels Documentation