IRCloggy #git 2009-04-25

Logs Search ←Prev date Next date→ Channels Documentation

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

2009-04-25

gberdyshev joined00:00
juanjoc left00:01
sgrimm left00:02
wshimmy left00:03
sgrimm joined00:03
jceb left00:05
ajonat left00:07
flujan left00:10
wshimmy joined00:12
kalle_ left00:12
kalle_ joined00:13
soycamo left00:14
JohnnyL left00:15
Fusco joined00:17
Fusco hi all00:17
i have a little problem and i don't found an good issue on the web00:17
i use gitosis and i would like use git daemon00:18
when i run a command as00:19
sudo -u gitosis git daemon --base-path=/home/gitosis/repositories/ --export-all00:19
i had this error00:19
fatal: unable to allocate any listen sockets on host (null) port 941800:19
have you an idea ?00:19
Leemp left00:20
Ademan left00:20
wsc joined00:21
thiago_home check if it's not already running00:23
hachi doener: solved it.... need to remove the 'fetch' line from the 'bare' remote that I add00:24
bobesponja left00:24
hachi otherwise I create a loop where it keeps creating remotes/bare/bare/bare/bare/bare...00:25
bobesponja joined00:25
Fusco no it's not always running :(00:25
the 9418 port is open on the firewall00:26
ans netstat don't check git but it's in /etc/services00:26
quentusrex If I keep doing this command: git pull origin master:refs/heads/master00:26
to pull from a remote server, and push back to it easily00:26
how do I set it up to only need to type: git pull00:27
I know I need to set something up in the config file,00:28
arohner joined00:28
quentusrex but I'm not sure which would allow the simple: git pull00:28
and have the default...00:28
faithfulgeek joined00:28
jfkw left00:29
cpg left00:30
Leemp joined00:30
KwikkSilva left00:33
MisterN left00:33
thiago_home quentusrex: git branch newmaster origin/master00:34
git checkout newmaster00:34
git branch -d master; git branch -m newmaster master00:34
OR: git config branch.master.remote origin; git config branch.master.merge refs/heads/master00:35
quentusrex I need to run all of those?00:35
ok00:35
that last section was awesome...00:35
hmm00:35
bremner_ joined00:35
Landon joined00:37
quentusrex and how do I add an post-update hook that will do a git pull on a directory?00:37
I have this:00:37
catalis left00:37
Landon left00:37
quentusrex unset GIT_DIR00:38
cd /etc/cgit/cgit-admin/00:38
git pull --quiet > /dev/null00:38
Casan left00:39
quentusrex nvm, fixed it00:39
thansk.00:39
stuffcorpse left00:39
bremner__ joined00:39
stuffcorpse joined00:39
bremner__ left00:39
bremner__ joined00:41
stephenjudkins left00:43
wsc_ joined00:47
wsc left00:47
e_6 left00:47
boto_ left00:48
andrewkasper left00:49
porcnick left00:50
hachi how do you ask git if a branch exists?00:54
nis joined00:55
bremner_ left00:55
Fusco git branch [-a|-r]00:56
hachi git rev-parse --verify -q master00:56
I guess00:56
not git branch00:56
that lists you the branches00:56
bremner_ joined00:57
gitte joined00:57
faithfulgeek left00:58
thiago_h1me joined00:58
lois[pac] left00:58
botanicus left00:58
thiago_h1methiago00:59
thiago_home left00:59
Landon joined00:59
Landon is this the right place to ask about gitosis problems?00:59
nis yes01:00
rettub_ left01:00
rettub_ joined01:00
Landon well, I'm having some problems with it on my ubuntu server, it's not updating the conf files01:00
brink left01:01
nis what do you do?01:01
Landon I've taken a peek at the post-update hook and see that it runs git-update-server-info or something similar, which is a command I can't find at all01:01
http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way I've been using these instructions step by step01:01
qhoxie left01:02
nis from where it doesn't work?01:02
Evanlec joined01:02
Evanlec so my question today is, are there _any_ good Windows clients for Git ?01:02
Landon nis: after I push gitosis-admin01:03
Evanlec ive been looking at hg and bzr because of this, but i'd really prefer to stick with git01:03
Landon I check the .gitosis.conf in the /home/git directory, but it's still how it started01:03
nothing's changed01:03
bremner_ left01:03
wsc_ left01:04
netoman joined01:04
nis Landon: what error do you get?01:04
Landon no errors01:05
it looks like it pushes fine and all01:05
it just doesn't update the actual config01:05
nis are you sure of your config file?01:06
Landon what do you mean?01:06
I check /home/git/.gitosis.conf after I push01:06
nis perhaps the config file has errors in it.01:06
k0001 left01:06
Landon would that matter? it should still push right01:06
also, I'm assuming it would push keys from the keydir onto .ssh/authorized_keys, but the only one in there is the one I initialized gitosis with01:07
solrize joined01:07
Landon it's a pretty simple config, I don't see any errors in it01:07
nis ok,01:07
Landon I'm not sure if that missing command is the problem, but it looks like it could be _a_ problem :\01:08
nis please, check if git log in the server is up-to-date.01:08
Landon ok, where can I find that?01:08
ok, latest commit was "Automatic creation of gitosis repository."01:09
nis /var/spool/gitosis/repositories or somthing like that01:09
(race condition) :-)01:10
Landon I'm looking in /home/git/repositories01:10
nothing for gitosis in /var/spool01:10
nis ah.01:10
did you commit your work?01:10
aziz left01:10
Landon yes , I'm pretty sure of that :P01:11
gberdyshev_ joined01:11
Landon let me try again01:11
nis git status01:11
Landon: is your gitosis server in your local system?01:12
kalle_ left01:12
kalle_ joined01:12
solrize left01:12
Landon oh, I'm getting an error now01:12
yeah01:12
well, I'm running oall of these commands on my server01:13
for now01:13
nis ok01:13
pastebin the error, plz01:13
Dashkal left01:13
aziz joined01:14
Landon http://landon.pastebin.com/d6ddb27ce01:14
mw left01:15
nis did you check the permissions?01:15
mw joined01:15
sunblush joined01:15
Landon they're at least read for everyone01:16
I don't see a directory named gitosis-export though01:17
oh , its in the repositories01:17
same permissions, -rw-r--r--01:17
gberdyshev_ left01:17
gberdyshev_ joined01:18
nis who owns eht directory?01:18
the*01:18
and the file?01:19
Landon root01:19
bremner__ left01:20
Landon not sure how that happened01:20
wsc joined01:20
nis do you have a "git" unix user?01:20
Landon yeah01:20
jerbear joined01:21
nis this should be owned by git, i guess.01:22
dennis__ joined01:22
dennis__ hi01:22
Landon yeah, I just chowned it over01:22
tried to push but it told me it was uptodate01:22
dennis__ i need help.... please01:22
nis dennis__: just ask :-)01:23
dennis__ i have a changes inside a git on the server.... how apply these changes?01:23
i type git status and say my changes01:23
nis Landon: try 'git push origin master:master'01:23
dennis__ i type git show and i can see my modification01:23
but how now apply this on the server?01:24
Landon again, everything up-to-date01:24
nis dennis__: man git-push01:24
Gitbot dennis__: the git-push manpage can be found at http://git.or.cz/man/git-push01:24
nis Landon: is it up-to-date?01:24
dennis__ ok i push my git and it is now on the repository01:24
romao left01:25
Landon nope, gitosis.conf is still old01:25
dennis__ but no apply changes on the modified files01:25
gberdyshev left01:25
nis dennis__: is the remore a bare repo?01:25
bremner_ joined01:25
dodo_the_last1 left01:25
dennis__ no i dont share it..01:25
nis remote*01:25
hachi GUH, crap01:26
jzellman left01:26
dennis__ yes on remote server by ssh01:26
hachi there's a trashed subversion revision01:26
nis dennis__: you should have a bare repo01:26
dennis__ but git push is ok01:26
nis dennis__: faq non-bare01:26
Gitbot dennis__: Pushing to non-bare repositories is discouraged. See http://git.or.cz/gitwiki/GitFaq#non-bare01:26
hachi I know exactly what's wrong with it... is there any way I can force git-svn to skip it or anything?01:26
dodo_the_last joined01:27
nis Landon: did you clone the repo?01:27
Landon aha01:28
I just cloned it and it's fine01:28
the one I pushed01:28
nis (so, it's up-to-date)01:28
Landon yeah01:28
jzellman joined01:28
Fusco left01:29
flaguy48 left01:29
nis Landon: i guess you messed up your initial clone01:29
(it's not an offense)01:29
Landon not following you01:30
gitte left01:30
Landon I mean, shouldn't the stuff where gitosis lives be updating along with the gitosis-admin repository?01:30
gitte joined01:30
nis not following you01:30
;-p01:30
basically,01:30
ceej left01:31
nis you do the changes in your clone and push to update the gitosis server01:31
Landon right01:31
jzellman left01:31
nis i'd try a new update from the last clone and push01:32
mw left01:32
nis if it works, just remove the initial clone01:33
altrux joined01:33
Landon well01:33
nis and mv the good last repo in place of the initial01:33
Landon wasn't the initial clone updating correctly?01:33
if I cloned it again and it was correct01:33
gaveen left01:34
nis maybe. what i've understood from you before is that you initial repo was somewhat broken.01:34
Alinermedia left01:35
nis but i may be wrong01:35
gaveen joined01:35
Landon well I think the repo is correct01:35
but the post-update hook isn't working01:35
and the actual gitosis configuration isn't updating01:35
this is the third time I've wiped gitosis and reinstalled, but the same thing keeps happening01:36
nis what thing?01:36
i mean,01:36
if the new clone is up-to-date, it should be ok.01:37
Landon well, I make a repo on my laptop01:38
which I'vve added to gitosis01:38
dennis__ left01:38
Landon but when I try to push the initial commit I get asked for the password for [email@hidden.address]01:38
which, it has none, gitosis should have added the key I'm usingfor my laptop01:38
sitaram left01:39
nis could you pastebin your config file?01:39
arohner left01:40
Landon nis: http://landon.pastebin.com/d4578709b01:40
in keydir I have a file [email@hidden.address]01:40
Alan joined01:41
nis you didn't give a name to repo in the "landon" group01:42
mndoci joined01:42
Alan Ooops, i just ended up doing 'git push --mirror', and now i have 'origin/master' in my remote repository...01:42
how do i get rid of it?01:42
nis something like "writable = landon"01:42
WALoeIII left01:42
catalis joined01:43
Landon nis: I read that it could be used as a meta-user01:43
and I could list it in other writables01:43
er01:43
nis Alan: git remote rm ?01:43
Landon in other groups*01:43
bremner_ left01:43
Landon so I didn't have to keep listing landon@c29150 and landon@delirium01:43
Alan oooh, i think i worked it out01:43
nis Landon: http://landon.pastebin.com/m5996605701:44
Alan nis: no, from the remote end :|01:44
nis see line 1301:44
Alan it's ok now though01:44
Landon aha, let me try that01:44
Alan git push origin +:origin/master01:44
Landon I should do that for the gitosis-admin group too?01:44
Alan deleted origin/master on the remote end01:44
nis Landon: yes01:45
Landon getting somewhere now, I can push from my laptop01:46
but I get errors there too01:46
offby1`offby101:46
nis Alan: what do you want exactly?01:46
Landon http://landon.pastebin.com/d271c132301:47
Alan nis: basically what happened is this...01:47
I have a remote repository, A01:47
cloned to a local repository, B01:47
in B, i did git push --mirror01:47
which copied B's reference to A's master to origin/master on A01:48
aziz left01:48
sitaram joined01:48
Alan I wanted to get rid of that reference01:48
And by pushing "no branch" to it, i seem to have managed that01:48
nis Landon: git branch01:48
Landon what should that be doing?01:49
nis list branches01:49
Landon nothing01:49
nis ok,01:49
before push, you must do a commit first.01:50
then, you souhld be on branch master01:50
kodama joined01:50
nis then you can push.01:50
I usually start with01:50
Mr_Grieves|Mr_Grieves|zzz01:50
nis git commit --allow-empty -m 'Init'01:51
Landon do I need to do the whole push origin stuff?01:51
kodama hello, I'm having trouble getting some changes into my git repo. specifically, migrating some perforce code into git.01:51
I'm syncing p4 code to /usr/local/src01:51
cloning my git repo to /tmp/mypath01:51
then running 'cp -rf /usr/local/src /tmp/mypath'01:51
Landon like, in the future would I be able to just use "git push" instead of "git push origin master:stuff/morestuff/etc"01:51
kodama but git thinks no changes were added?01:51
nis Alan: yes, git push origin :branch-to-delete01:51
kodama I do a 'git add .' followed by commit01:52
but01:52
antoranz joined01:52
kodama no dice01:52
nis Landon: yes01:52
Landon nis: great, I think I've got everything solved01:52
you're the man01:52
kodama can anyone suggest what I might be missing?01:52
nis Landon: np!01:52
Landon left01:52
Alan nis: thanks for verifying that i did it the right way :)01:52
I'm pretty happy that i've got to grips with the concepts of Git when I can work those things out01:53
sitaram kodama: did the git commit throw up an editor for you to type in a message or error out?01:54
kodama sitaram: it just blows up saying "nothing to commit"01:54
sitaram and the git add .?01:54
kodama sitaram: the git add . runs without saying anything01:55
sitaram assuming you're in the right directory, I suggest touching a few files that you are *sure* have changed and try git add just-those-files first01:55
touch file_I_am_sure_has_changed01:56
git add file_I_am_sure_has_changed01:56
and see if it adds01:56
kodama sitaram: good call, let me try...01:56
nis sitaram: the touch command?01:57
kodama sitaram: touched, edited, added, committed. all worked fine.01:57
sitaram: that's quite strange.01:57
gaveen left01:57
sitaram kodama: I suspect that the cp is keeping the timestamps intact, and git is optimising by not checking the content if the time stamp is the same01:58
maybe the size is also considered, I dont know01:58
kodama: try 'find . -type f -print0 | xargs -0 touch; git add .'01:58
don't worry it wont add files that are really unchanged -- but it may be a bit slow as it SHAs each file01:59
kodama sitaram: where should I be doing the find from?01:59
sitaram /tmp/whatever -- the repo root02:00
kodama sitaram: ah02:00
fujin joined02:00
kodama let me try02:00
sitaram /tmp/mypath02:00
gaveen joined02:00
mw joined02:00
merlin83 joined02:00
kodama 'nothing to commit'02:01
sitaram nis: what I find strange is that cp is not supposed to preserve timestamps unless you use "-a" or "-p", which he has not used... weird02:01
kodama yeah it's like the copy never ran02:01
nis sitaram: agreed02:01
sitaram wait... but if you do this to a few individual files it worked?02:01
sekimura_ left02:01
kodama if I cd to the repo root and touch a file it works just fine02:01
I didn't try going to where I had synced new code and add a new file there02:02
let me give it a whirl02:02
sitaram "where I had synced new code" == ?? (confused)02:02
kodama sitaram: oh I see -- maybe I didn't make that clear02:02
sorry02:02
so02:02
what I'm doing is02:03
sync P4 to some directory on the box02:03
nis kodama: sitaram: don't you have /tmp mounted as shm type with some extra options?02:03
kodama git clone my github repo to some dir under /tmp02:03
nis: I have no idea02:03
sitaram oh you mean /usr/local/src in your case?02:03
kodama sitaram: exactly02:03
then cp -rf /usr/local/src /tmp/whereiclonedto02:04
sitaram nis: you may have hit on it02:04
kodama: are you sure the copy completed without errors?02:04
gitte left02:04
kodama sitaram: when I run the command nothing explodes02:04
sitaram: I'm assuming it'd tell me if it had a problem?02:04
sitaram yes02:05
it would02:05
so let's try and break this down02:05
nis kodama: could you try under /home?02:05
kodama sure thing02:05
sitaram after the cp from usr_local_src to tmp_mypath02:06
kodama nis: clone repo to there?02:06
nis yep02:06
Alan Also, there is something I really love about Git...02:06
sitaram do a 'diff -qr usr_local_src tmp_mypath' and see if it reports anything except ".git" and any similar directories for p402:06
kodama nis: let me try02:06
markelikalderon left02:06
kodama sitaram: will try that too02:06
:P02:06
one sec you guys02:06
sitaram kodama: do what nis says first02:06
Alan Which is that you don't have the "one precious repo we must tiptoe around"02:06
I mean, if you really break something in SVN, you break it for everybody02:07
sitaram kodama: and if no success then you can do this diff business02:07
Alan I mean the repository itself, not just code in it02:07
kodama sitaram: okay, one sec then02:07
*type*02:07
Alan Even to the point of "oops, accidentally deleted the remote branch"02:07
Just get someone else to push it back in02:08
or something like that02:08
mw left02:08
sitaram Alan: and I always thought that is true of all distributed version control systems, but it appears that the others don't actually clone *every* branch02:08
btanaka joined02:08
nis Alan: yep, assuming you have people who pulled. :-)02:08
(or fetch to be fair)02:09
mw joined02:09
Alan Also, kudos to GNOME for using Git... but i can't find the damn project I'm after in their massive project list!02:10
http://git.gnome.org/cgit/02:10
kodama nis: sadly...cloning to my home directory did not make a difference. :(02:10
-bash-3.1$ git status02:11
# On branch master02:11
nothing to commit (working directory clean)02:11
let me try the diff now02:11
mndoci left02:12
kalle_ left02:12
kalle_ joined02:13
kodama waitwaitwait02:13
omg....02:13
I think I'm about to be really embarassed.02:13
km2 left02:13
nis kodama: we all do crap sometimes. :-)02:13
kodama I just noticed a directory where in my git cloned directory that looks suspiciously like it might be named "src".02:14
could I just be missing a '.'?02:14
sitaram you'd have seen that directory as "new" in that case02:15
(in git status I mean)02:15
kodama sitaram: oh, oka02:15
s/oka/okay/02:15
sitaram so try the diff02:15
kodama sitaram: wait, though -- that directory should not be present02:16
sitaram unless you did that earlier and *committed* it :)02:16
kodama after I do the copy, there shouldn't be a "src" directory in either place02:16
sitaram: you know02:16
I think I did.02:16
bc when I look in my repo on github02:16
fujin left02:17
kodama I do see that dir02:17
sitaram yeehaw! someone just like me -- been there done that got the t-shirt didn't like the color02:17
kodama haha!02:17
so02:17
how do I back this out?02:17
and do it right in the future? ;;)02:17
sitaram ...as long as you did not push or someone did not pull from you02:17
we can02:17
if someone == a very few people you can personally contact, that also may be ok02:18
kodama nobody's pulled from my repo, it's private02:18
it looks like I cloned, copied into the wrong place02:18
sitaram so, step 1 is to get your local repo back in shape, step 2 is to 'git push -f' that to github02:18
kodama committed02:18
and then pushed02:18
okay02:18
step 1 is easy02:18
sitaram step 2 is easy; step 1 is not. How thoroughly do you want to clean up? Erase all traces of the extra dir from past commits or just fix the top commit?02:19
("not" == relatively)02:19
kodama I just want to get rid of the extra dir02:19
sitaram I assume you mean "just the top commit being correct is good enough"02:19
kodama that's correct02:20
sitaram well that's easy. Even otherwise it only means a git filter-branch, but now you just have to git rm -r the-extra-dir02:20
kodama the github repo is really just a staging area, so as long as the head is right, things are a-ok02:20
sitaram then git status02:20
kodama fatal: pathspec 'src/' did not match any files02:21
huh?02:21
cytrinox_ joined02:21
nis ls -ld src ?02:21
cytrinox left02:21
sitaram kodama: basic sanity check: pwd and make sure you're in the right place02:21
kodama wow...my head's about to explode. looks like the dir is bare empty?02:22
mndoci joined02:22
kodama yep, pwd confirms i'm definitely in the root of my app/repo02:22
sitaram well that would explain git not knowing, since empty directories are ignored02:22
so back to the diff then...02:22
kodama wait but whaaaa02:22
I'm so confused.02:22
nis sitaram: kodama: no, check 'ls -l'02:22
the -d option may confuse you there02:23
kodama 'ls -al' returns just '.' and '..'02:23
nis Ah, ok, good to know. :-)02:23
rmdir src, then02:23
sitaram I assume you did that *inside* this ghost src directory?02:23
kodama sitaram: correct02:24
nis: okay, done02:24
sitaram now diff -qr root_of_GIT_repo /usr/local/src_where-I_copied_from_p402:24
I can't think of anything else02:24
nis what p4 is? (yes i know, it's been a long time we are talking about that)02:25
sitaram and if that doesn't work, I'm going to suggest (1) fresh clone (2) diff (3) copy (4) diff again and if step 2 and step 4 give different results my head will explode02:25
perforce02:25
nis Ah, thans02:25
sitaram a proprietary VCS baed on CVS loosely02:25
nis thank you :-)02:26
kodama nis: sitaram's got it02:26
sitaram perl was the most high profile that used it for many years (they made a license exception for perl or something)02:26
markelikalderon joined02:26
kodama sitaram: yeah I think they'll give out licenses for open source02:26
but it's def. not a distributed system02:26
anywho02:26
sorry, I think I've got myself confused on the box here.02:27
sitaram none of the older crop are distributed02:27
kodama let me back track and get to a clean place.02:27
sitaram kodama: yeah often helps to step back and go very slowly02:27
kodama I'm re-cloning my repo from scratch and going in to do the rm02:27
vbabiy joined02:28
kodama okay, I did 'rmdir' on the empty directory02:28
I'd like to first just get this bad directory removed and pushed to github02:29
Landon joined02:29
sitaram wait wait02:29
you got an empty directory on a clone? not possible!02:29
kodama sitaram: ?02:29
Landon ok, I'm back, I'm having trouble with git-daemon n ow02:29
in its logs I get '2009-04-25_02:21:55.53530 [9636] '/home/git/repositories/pysg.git': unable to chdir or not a git archive02:29
kodama sitaram: well....ls doesn't lie, right?02:29
nis kodama: directories are not tracked02:29
Landon and I've looked at the /home/git/repositories/pysg.git/ and it looks like the .git directory after I check out a repo02:30
kodama sorry guys, I'm just telling you what 'ls' is telling me02:30
Landon is that right?02:30
octagon left02:30
kodama let me reclone just to prove it02:30
so02:30
k0001 joined02:30
nis Landon: yes02:30
kodama i'm in my tmp directory02:30
cloning from github now02:31
Landon ok, so it02:31
nis Landon: that's a bare repository02:31
Landon s a valid git archive02:31
then I guess the problem is unable to chdir, which I haveno idea about02:31
kodama -bash-3.1$ ls -alF src/02:31
total 1602:31
drwxr-xr-x 2 cp cp 4096 Apr 24 19:30 ./02:31
drwxr-xr-x 17 cp cp 4096 Apr 24 19:30 ../02:31
nis Landon: check permissions02:31
Landon oh, I think I see something, git-daemon is running as "116"02:31
going to poke around and see if I can change that02:32
sitaram kodama: pwd?02:32
Landon should probably run as the git user, right?02:32
nis Landon: wait, you're running gitosis, right?02:32
kodama sitaram: pwd is the root of where I cloned to -- i.e. I did "git clone git:remote/path myclonedir; cd myclonedir; ls -alF src'02:33
Landon nis: right02:33
nis: I changed the user of git-daemon andn ow I get a seperate error :D02:33
oh, I think I have it now02:34
nis Landon: so, what do you do with git-daemon?02:34
Landon nis: I would like anon access as well02:34
the guide I've been using suggests using git-daemon for that02:34
nis Landon: for push or pull?02:34
Landon pull02:34
nis Ah, ok.02:35
sitaram kodama: I am at a loss. Is this a private repo or you just meant no one has cloned it yet? Meaning can I clone it?02:35
kodama sitaram: sorry, it's a private repo02:35
nis isn't export into gitosis for that purpose?02:35
sitaram kodama: np02:35
Landon no, that's for user control02:35
at least from what I've read02:36
kodama sitaram: and I can't share the code (we're hosting proprietary code in there)02:36
sitaram: I mean....yeah....this is totally weird.02:36
sitaram no no worries -- we do proprietary code too :) that's ok02:36
kodama sitaram: :)02:36
hmmm02:36
so02:36
here's one thing I'm thinking -- as a potential02:36
eno__ joined02:37
kodama "this is really friggin' weird but might affect why"02:37
sitaram kodama: check all ".gitignore" files, all configs (local and global) for core.excludesfile, and .git/info/exclude for anything suspicious02:37
nis Landon: i should say: isn't the "export" support into gitosis for that purpose?02:37
or s/support/option/02:38
fujin joined02:38
kodama sitaram: how do I check the configs? I"m pretty new to git02:38
eno left02:39
nis Landon: AFAIR, you just have to add a .export-something in your repo.02:39
kodama .git/info/exclude looks like it's all just commented out stuff02:39
eno__eno02:39
Landon nis: I'm googling, but not seeing anything for gitosis02:39
sitaram kodama: ~/.gitconfig, reporoot/.git/config are the two places02:39
.gitignore can be in any directory in reporoot02:39
gberdyshev_ left02:40
catalis left02:40
cemerick joined02:40
Landon nis: the gentoo wiki uses git-daemon02:41
on the gitosis page02:41
kodama sitaram: the only .gitignores I see are in directories far below the app root -- I'm 99% sure they wouldn't affect anything02:41
http://www.pastie.org/45774802:41
Gitbot [git 457748]: http://tinyurl.com/cjr2e9 [tree]02:41
nis checking02:41
kodama is my .git/config02:41
no ~/.gitconfig either02:41
sitaram kodama: then that's a dead end; all looks fine02:42
kodama sitaram: let me paste in what happens in git status after I do the 'rmdir src'02:42
sitaram kodama: fine, we'll shelve the "why did clone bring back an empty directory" part for now, and try that diff in the following sequence02:42
(1) fresh clone (2) diff (3) copy (4) diff again and if step 2 and step 4 give different results my head will explode02:43
kodama sitara: http://www.pastie.org/45775102:43
haha okay02:43
let me try, one sec.02:43
ah02:43
nis Landon: did you do http://gist.github.com/101467 ?02:43
sitaram looks like src was a symlink then...02:44
kodama sitaram: but the thing is -- that empty directory does need to get out of there02:44
sitaram kodama: please try 'cd reporoot; ls -al | grep src'02:44
kodama sitaram: after I 'rmdir' or before? I have a fresh clone ready02:45
sitaram before02:45
kodama I'll send you pastie with the output02:45
sitaram ok02:45
kodama http://www.pastie.org/45775302:46
Landon nis: looking at it, but it looks like just automatic management for git-daemon, I already have the export file in the directory02:46
but let me try this , see how it works out02:46
kodama sitaram: looks like you expect?02:47
sitaram kodama: this is really really weird. How about git ls-tree -l -r -t | grep src (edit the output to remove or elide confidential names but keep the overall number and structure)02:47
nis kodama: no, for me.02:47
kodama git didn't like that command -- I'm on 1.6.2.4 on this box02:48
nis sitaram: i wonder if there was a src file before, then was rm then a directory with that name creanted.02:48
sitaram nis: he got it on a fresh clone; regardless of past history, that's weird!02:49
nis ah, beautiful!02:49
kodama hopefully this is helping to teach you guys something new and exciting about git. ;)02:49
sitaram kodama: what does git say to the ls-tree?02:50
oh yes it is!02:50
kodama it comes back with a "usage: git ls-tree" message02:50
nis seems like (1) the clone process did a mess or (2) the repo cloning from is crappy02:50
kodama the thing that's weird is that02:50
well let me back up02:50
agile left02:50
sitaram kodama: sorry; append HEAD or master or whatever to the ls-tree options -- my mistake02:50
kodama I've concluded at least two things so far02:51
sitaram s/whatever/ whatever your current branch02:51
tjafk1 joined02:51
kodama so just 'git ls-tree -l -r -t master | grep src' ?02:51
Flathead joined02:51
sitaram yes, if master is the current branch. Or just use HEAD if in doubt02:52
nis: I was going ask for a pastie of the "git clone" output...02:52
kodama fact #1) I somehow copied the 'src' directory into a freshly cloned repo, I ran add, git took it and let me commit it and push it02:52
I can send you the clone as well02:52
jboyens joined02:52
kodama 160000 commit 7d5116aeee97265984e4ea87e661d0a41c673b1a - src02:52
(hopefully I didn't just tell you all my secrets there)02:52
agile joined02:53
kodama really, that one fact is all I've found out. : )02:54
nis: sitaram: let me do a fresh clone and send you the ouput02:54
sitaram kodama: that 160000 commit stuff? is that from ls-tree?02:54
you have a submodule!!!02:54
kodama sitaram: that's from ls-truee02:54
er02:54
s/truee/tree/02:54
markelikalderon left02:54
nis sitaram: good job :-)02:54
sitaram nis: that explains it; I've never seen a "commit" come up in "ls-tree" -- and I vaguely remember that mode 160000 is for submodules02:55
kodama bwwaaaaaaah -- I swear! I've done no submoduling!02:55
sitaram kodama: cat .gitmodules or .gitsubmodules or some such please02:55
wsc left02:56
kodama sitaram: I don't have any files like that.....02:56
find . -name "*git*"02:57
sekimura joined02:57
kodama returns nothing that even looks close to having the word "module" in it02:57
all I see are those .gitignore files I mentioned before02:57
oh02:58
wait...02:58
okay...02:58
sorry, thinking....02:58
hmmm02:58
sunblushsunblush|away02:58
kodama wait, no, nevermind. sorry.02:59
aspotashev|eeepc joined02:59
nis g2g, sorry02:59
kodama nis: np -- thanks for looking02:59
yinkei left02:59
nis left02:59
kodama sitaram: nothing else springs to mind?03:00
sitaram: I agree this is a pretty weird issue03:00
sitaram kodama: 160000 is definitely a submodule thing, as is the finding of a "commit" object in an "ls-tree" output (the second one I am guessing)03:01
Landon left03:01
sitaram I have not played with submodules at all, but I would suggest a "git submodule init; git submodule update" on a fresh clone and paste it. I'll be back in about 10 min :(03:01
kodama let me try that03:01
i'll be back in a sec too03:02
thanks for all the help so far03:02
sitaram: your head'll explode when you see this -- http://www.pastie.org/45776503:03
sekimura left03:03
raydeo joined03:05
madewokherd looks pre03:05
peff left03:05
madewokherd looks pretty safe to heads to me03:05
Tricon joined03:06
jboyens left03:06
lazyshrk joined03:06
kodama madewokherd: haha -- but we're hot on this submodule track, is why03:07
lazyshrk left03:07
tjafk2 left03:07
madewokherd the submodule just isn't configured properly03:07
which makes sense :p03:07
lazyshrk joined03:07
merlin83_ joined03:08
dennis_ joined03:08
dennis_ hi everybody03:09
kodama madewokherd: do you have the full context of the conv. though?03:09
davidad joined03:09
dennis_ i'm an expert on ROR .. who need help?03:09
madewokherd no, just the last 15 minutes or so03:09
hobodave ugh03:09
I did something stupid and need help before i lose my changes03:09
kodama madewokherd: that directory shouldn't even be there -- I got the empty directory on a fresh clone from github03:09
dennis_ what is your problem?03:09
sitaram madewokherd: last 15 min is fine, and if you know anything about submodules please take over :) I'm at the end of my expertise!03:10
kodama sitaram: wait wait03:10
Leemp left03:10
dennis_ but you have call me God always03:10
kodama sitaram: don't go just yet! :)03:10
hobodave http://pastie.org/private/ksfj9m1fqb9bmbggqjoa03:10
can someone help me recover my changes03:10
I screwed something up03:10
sitaram I'm here not going anywhere, but I am out of ideas :(03:10
dennis_ what is your problem?03:11
kodama sitaram: the empty dir still hasn't been removed and pushed. I'm sure you can at least help me with that part, right?03:11
sitaram: or is that actually like completely impossible?03:11
sunblush|awaysunblush03:11
kodama (which I assume is "no")03:11
dennis_ ATTENTION: the best way is formatting your pc and install all again!!!!!!!!!03:11
sitaram kodama: that is not just an empty dir; it's a stub for a submodule. "git ls-tree" shows it as a "commit" object03:11
well just03:11
well just 'git rm src' and see what happens03:11
I suspect it'll barf03:12
kodama yeah, it says "pathspec didn't match any files"03:12
but03:12
remember03:12
well, actually, no....that wouldn't make any sense.03:13
hobodave guys, I committed a revision, then wanted to change my commit message, so I did a 'git reset --soft HEAD^'. I then tried to edit the message by typing 'git commit --amend' but this brought up the previous commit, after quitting out of that, I seem to have lost my most recenet commit03:13
please help03:13
http://pastie.org/private/ksfj9m1fqb9bmbggqjoa03:13
kodama sitaram: oh -- here's one thing03:13
sitaram: maybe if I can figure out when the change was introduced that'd be helpful?03:13
madewokherd what if you rm --cached?03:13
schacon joined03:13
kodama madewokherd: 'git rm --cached src'?03:14
madewokherd yeah03:14
kodama nope, still the pathspec error03:14
kukks left03:14
kodama git doesn't have a "just nuke it" option? :P03:14
madewokherd for rm there's -r, but I don't see why that would help..03:15
hobodave: run git reflog03:15
kodama madewokherd: I can delete the dir just fine03:15
madewokherd hobodave: your commit and its id (which you can checkout) should be near the top03:15
hobodave madewokherd: http://pastie.org/private/t8ogeetuzdsq68ehjavjng03:16
kodama madewokherd: http://www.pastie.org/45777303:16
hobodave c3334fb is the commit I wanted to undo and edit the message of03:16
b2ffce3 seems to be me resetting it03:16
yet 1f5be9e was a mistake03:17
sitaram kodama: I managed to reproduce your situation03:17
kodama sitaram: oh? do tell!03:17
hobodave and git st doesn't show my local files as having changed03:17
do I need to do another git reset?03:17
sitaram make a submodule, commit, then delete ".gitmodules", commit, and clone that03:17
scarabx left03:18
madewokherd I would reset to c3334fb and then do a commit --amend03:18
kodama sitaram: how would I do that?03:18
madewokherd but git status already says it's deleted03:18
surely all you have to do is commit03:18
hobodave madewokherd: git reset --soft c3334fb ?03:18
kodama sitaram: I am totally buying you a cake if this works03:18
hobodave or hard03:18
madewokherd shouldn't matter if all you're doing is a commit --amend, but I'd go with hard03:19
sitaram if you have never played with submodules you have been hacked :) Is the only explanation I have now...03:19
kodama sitaram: it could very well be that something odd happened....our codebase has a tendency to produce strange effects.03:19
qrush left03:19
sitaram if you grep for 160000 in the git sources, it's all about submodules. And I have *never* seen a commit object show up in an ls-tree, (since I have never played with submodules either)03:19
hobodave perfect, t hanks madewokherd03:19
madewokherd ah, changed but not updated, you should be able to add that change03:19
kodama sitaram: just by peripheral association03:19
madewokherd: tharin lies the rub, indeed ;)03:20
madewokherd (or git commit -a, as the message says)03:20
jerbear left03:21
madewokherd I think commit -a would fix it03:21
kodama whoa.03:21
dennis_ hi madewokherd what is your problem?03:21
kodama *wild and crazy giggling*03:21
madewokherd dennis_: I am fine what is your problem sir?03:22
sitaram dennis_: it's a submodule that sneaked in somehow and then the .gitmodules file got deleted; can you help?03:22
kodama madewokherd: sitaram: git commit -a brought up the commit dialog and let me commit03:22
I pushed and now I don't see it anymore.03:22
recloning to double-check03:23
nope....it's totally gone.03:23
*head explodes*03:23
sitaram kodama: one last thing for me:03:24
kodama I want to scream, cry, laugh and dance all at the same time.03:24
madewokherd submodules are really not all that complicated03:24
sitaram kodama: "git log --stat --pretty=oneline -- .gitmodules03:24
madewokherd except for the part where they break all sorts of rules03:24
sitaram paste please...03:24
kodama sitaram: sure thing, one sec.03:24
sitaram kodama: just to confirm my sanity :)03:24
dennis_ left03:24
kodama sitaram: I'd paste the output, but there is none.03:25
sitaram ok my head exploded then... never mind03:25
kodama sitaram: well03:25
offby1 eww03:25
offby1 reaches for a damp rag03:25
kodama sitaram: if it makes a difference to you, git did put a lot of newlines in03:25
sitaram runs off to pick up the pieces and put them back together03:25
vbabiy left03:25
hobodave left03:25
sitaram newlines where?03:25
antoranz left03:25
kodama i'll paste03:25
sitaram: http://www.pastie.org/45777803:26
sitaram kodama: take out the --pretty=oneline and try03:26
this is getting weirder!03:26
git log -- .gitmodules03:27
from the repo root of course, kodama03:27
kodama sitaram: sure thing, one sec -- I still have to figure out why the heck my copy didn't put things in the right place the first time, but hopefully that's just me borking the syntax of "cp"03:27
sitaram (the --stat doesn't matter, in or out)03:27
kodama fatal: Not a git repository (or any of the parent directories): .git03:28
er03:28
wait03:28
sitaram huh?03:28
kodama tee hee03:28
sitaram pwd?03:28
vbabiy joined03:28
kodama forgot to cd into the right directory03:28
same thing as before03:28
jjuran I have a question about resolving rebase conflicts. I'm familiar with the conflict markers from CVS, where I need to modify the file to look the way I want it to *now*. But what is git asking for during a rebase conflict?03:28
kodama just a lot of blank lines03:28
sitaram: it's the exact same output as before03:28
sitaram a plain "git log -- .gitmodules"? wow... ok, time for a stiff drink03:29
kodama sitaram: hehe03:29
sitaram kodama: try the same thing with some nonsense name instead of .gitmodules, something like skjfjksddhfsf03:30
jjuran: a rebase is also a merge in a way, so it's the same thing, you look for the same stuff03:30
kodama just a sec...I'm recloning so I can give you the output before I commit new code03:31
sitaram: I need to push some new code up for deployment :P03:31
sitaram a rebase does it commit by commit so it's often easier on conflict resolution (or so I believe)03:31
kodama: np03:31
kodama: work comes first don't worry03:31
altrux left03:31
kodama sitaram: well....this is interesting.03:32
sitaram: http://www.pastie.org/45778203:32
clearly git is reacting to the .gitmodules03:32
sitaram absolutely empty output for a nonsense file? normal03:32
jjuran sitaram: I haven't yet wrapped my head around resolving something that I've since modified.03:32
kodama sitaram: what I mean is03:33
sitaram kodama: clearly it is...03:33
kodama sitaram: seems odd to me that it'd act differently03:33
sitaram kodama: can you do *any* git logs at all. Like "git log --stat"03:34
and get the normal output?03:34
Tricon left03:34
kodama sitaram: totally normally output03:35
sitaram you get filenames with ++---- type stuff?03:35
if so, grep that for "gitmodules": git log --stat | grep gitmodules03:35
faithfulgeek joined03:36
kodama sitaram: returns nothing....03:36
sitaram *sigh*. ok, at this point if you fixed the problem, it's probably time to move on; just keep an eye on things03:37
I am not sure how git log would return a bunch of blank lines anyway03:37
kodama yeah it's pretty weird03:37
sitaram unless you;re using some tool to convert from p4 to git and it did something weird03:37
kodama no, it's pretty basic and brute force03:37
sitaram would explain the submodules too; maybe some aspect of p4 translates to submodules03:38
ok03:38
nm then03:38
kodama sitaram: thanks for sticking with me through it all ;)03:38
sitaram kodama: you're welcome -- it's always educational :)03:38
kodama as a complete aside, I like your handle -- I like the Ramayana03:39
sitaram that's my first name -- in India it is common to name people after mythological characters :)03:39
I'll ask you later how you heard about/read the Ramayana :)03:40
sitaram has to go drop his son off somewhere; be back in about an hour or so03:40
vmiklos left03:40
qrush joined03:42
scarabx joined03:45
vmiklos joined03:46
sgrimm left03:47
hax0r1337 joined03:48
kodama sitaram: take care!03:49
catalis joined03:49
kodama left03:49
catalis left03:49
m104 joined03:51
sgrimm joined03:51
wshimmy left03:52
Paf joined03:59
hobodave joined04:01
saurabh1403 joined04:01
wshimmy joined04:01
EvanCarroll how do i view the file as it was in HEAD^^04:01
Zenopus_ joined04:02
EvanCarroll git show kind of works04:03
ideall i wouldn't see the prepending +04:04
jjuran sitaram: I just used git cherry-pick until I passed the conflict and rebased the rest.04:05
Zenopus left04:06
Zenopus_Zenopus04:06
gerberb joined04:07
vmiklos left04:09
justatheory left04:11
k0001 EvanCarroll: what about git ls-tree HEAD04:12
vmiklos joined04:13
k0001 EvanCarroll: what about git ls-tree HEAD^^ , and then git show SHA1_OF_THE_BLOB_YOU_WHANT04:13
jerbear joined04:13
k0001 WANT* , jeez, is hard to write all in caps04:13
sitaram jjuran: rebase is basically a "sequence of cherry picks"04:13
justatheory joined04:14
Cynshard joined04:18
catalis joined04:20
jjuran sitaram: Right, the issue is that git stops to ask me for input and I don't understand the question. I understand that I have to revise a patch to resolve conflicts, but I lack the context to know what I'm doing.04:22
bgerber left04:23
jjuran I am only an egg, apparently. :-)04:23
BarryCarlyon joined04:24
sitaram jjuran: the times that I have had a rebase stop with conflicts for me, it's been "git status", look for unmerged files, fix them in plain vim or meld if you want to get fancy (meld would be "git mergetool -t meld filename"), git add, and finally git rebase --continue04:24
jjuran sitaram: I'll try git mergetool next time.04:27
saurabh1403 left04:28
catalis left04:28
Bass10 left04:30
sitaram jjuran: don't try git mergetool -t gvimdiff unless you're a vim jock, though any of the other tools in the list should be fine. I prefer meld when I have to move hunks wholesale to resolve, and vim to clean up any leftovers with a finer "brush" so to speak. And when I say vim, I mean just vim, not "git mergetool -t gvimdiff" :)04:31
saurabh1403 joined04:32
catalis joined04:33
saurabh1403 left04:34
HiBuddy joined04:35
HiBuddy left04:35
girishr left04:36
btanaka left04:36
qhoxie joined04:37
poseidon left04:41
ashleyw left04:44
scarabx left04:45
scientes joined04:46
bobmcw left04:51
jerbear left04:54
hyperair left04:54
netoman left04:55
bleythingbleything|away04:55
astrocub joined04:57
hyperair joined04:57
hachi anyone know what possibly can be done when git-svn hits a bad revision05:03
like... I want to just skip it05:03
because it's a branch that should have never happened... and was deleted in the next revision anyways05:04
arohner joined05:04
curvature left05:06
curvature joined05:06
lightcap joined05:06
gaveen left05:07
rylar joined05:09
bleything|awaybleything05:10
kalle_ left05:12
sitaram wait for Ilari to show up maybe? I seem to recall he knows a fair bit about git-svn (I myself have no experience of it, and the channel is probably half-asleep or doing its weekend chores!)05:13
kalle_ joined05:13
dbb joined05:14
eletuchy left05:14
ia left05:14
ocornu joined05:14
iamwilhelm left05:17
greyface left05:22
j416 joined05:28
rylar left05:29
anjalishenoy joined05:35
anjalishenoy Hello05:36
I just signed up for a git plan and want to install git on my OSX (TIger) - does git have a binary for this?05:36
priidu joined05:37
zpoley anjalishenoy: i used port for this on one machine, and this: http://code.google.com/p/git-osx-installer/05:38
ajalishenoy: on another05:38
anjalishenoy: oh and also just by downloading and building from source05:39
lightcap left05:39
qrush left05:39
zpoley anjalisehnoy: i'm on leaopard though but i would think they should all work on tiger05:39
anjalishenoy zpoley: unfortunately the link you sent me features all installs and downloads for Leopard and not Tiger. I need installs for OSX Tiger05:40
zpoley oh sorry05:40
anjalishenoy zpoley: guess I'll just have to build from source then?05:40
zpoley anjalishenoy: yeah it's just standard configure make install process05:41
lightcap joined05:41
anjalishenoy zpoley: actually, there's dependency issues for Tiger05:41
zpoley anjalishenoy: oh really05:41
raydeo left05:41
anjalishenoy zpoley: ok - is there a specific directory in which I should install git?05:41
zpoley anjalishenoy: i'm just curious, why haven't you upgraded to leopard >05:41
anjalishenoy: from source i would do /usr/local/05:42
anjalishenoy: that's the standard05:42
cardioid joined05:42
anjalishenoy zpoley: long story short- i have a few macs in my house and want to do a 'family upgrade' and am waiting for snow leopard05:42
zpoley anjalishenoy: ah ok05:42
anjalishenoy zpoley: as far as tiger dependencies go: check out: http://www.bergek.com/2008/09/22/install-git-on-mac-os-x-104/05:42
zpoley: looks like those have to be installed first, THEN git - hence I was asking if you could point me to one complete package05:43
zpoley anjalishenoy: ok gotcha, sorry about that05:43
anjalishenoy: i've been using os x for about two years and just always keep it up to date, and haven't had such a problem with it05:44
anjalishenoy zpoley: which version are you running?05:44
zpoley anjalishenoy: 10.5.605:45
hax0r1337 left05:45
zpoley anjalishenoy: my main problem with installing git always had to do with perl05:45
anjalishenoy zpoley: that's Leopard (although I don't think that's been out for 2 years)05:45
zpoley: what about perl ?05:46
sitaram I think you need expat and asciidoc only for documentation -- if you can get by with HTML on the web you can build just the binaries without those two05:46
so you won't have local man pages or HTML docs that's all05:46
zpoley anjalishenoy: there been issues with perl different perl modules compatibility05:46
anjalishenoy zpoley: is this a known issue for tiger or osx in general?05:47
niki left05:47
zpoley anjalishenoy: that's just my experience installing it on a couple machines05:47
anjalishenoy zpoley: ok. thank you for your help05:47
zpoley anjalishenoy: i also had port perl installed though too05:47
anjalishenoy: sure hope it helps05:48
anjalishenoy zpoley: I can't install it via macports can I?05:48
zpoley anjalishenoy: you can try i suppose but i don't know about tiger i guess05:48
anjalishenoy zpoley: ok. thanks again05:48
zpoley anjalishenoy: sudo port install git-core or sudo port install git-core +svn if you need git-svn05:49
anjalishenoy: sure, good luck05:49
anjalishenoy: it's awesome when you get it working05:49
anjalishenoy zpoley: that's it git-core is all I need?05:49
lightcap left05:49
cemerick left05:49
zpoley anjalishenoy: it should be05:50
anjalishenoy zpoley: kk cool, wil try it out05:50
zpoley anjalishenoy: have fun05:50
hachi sitaram: thank you05:54
Ilari: if you happen to come around and have a moment, please :)05:55
Ilari ...05:56
eletuchy joined05:57
hachi oh my05:57
I'm looking for a way to bypass a bad pair of revisions with git-svn05:57
aspotashev|eeepc left05:57
eno__ joined05:57
hachi someone made a bad svn cp, and then deleted it05:57
aspotashev_ joined05:58
Ilari No, I don't know much specifically about git svn. Especally not about internal errors such as bad revisions.05:58
hachi oh, there's no error in git-svn itself05:58
Ilari hachi: How you even make bad svn cp?05:58
hachi the repo is enormous05:58
Ilari You saying server goes crazy when it hits that version then?05:58
hachi and roughly speaking, someone copied a large portion of it into a smaller part05:59
kate21de joined05:59
eno left05:59
eno__eno05:59
hachi I can make an example if you'd like... perhaps I should even if you don't05:59
Ilari hachi: You mean copied foo to foo/bar or something like that?05:59
hachi they copied /a/trunk into /b/tags/something06:00
rather than /b/trunk06:00
so then it brought in the entire history of /a/06:00
Ilari hachi: Can one specify multiple revision ranges (-r)?06:01
TokyoDan joined06:01
hachi I don't believe I can make it skip part06:02
it just will wait till the next time I call it and it will try again06:02
I might mirror the svn repo and somehow surgically erase the revisions06:03
but I'm hoping for a better way06:03
hobodave_ joined06:03
hachi hmm, docs seem to contradict my experience, I will try again06:04
khmarbaise joined06:05
simosx left06:08
schacon left06:08
hulo joined06:10
kalle_ left06:12
kalle_ joined06:13
arohner left06:14
khmarbaise left06:15
hax0r1337 joined06:18
hobodave left06:20
hachi Ilari: you were correct in any case06:21
aspotashev|eeepc joined06:25
petercoulton left06:25
aspotashev_ left06:26
hax0r1337 left06:42
stuffcorpse left06:45
hulo hello. how do i do a git clone, with creation of the repo in . ie say i don't want creation of a subdir reflecting repo name, but for all dirs and files in git repo to go .06:45
stuffcorpse joined06:45
hulo do ijust specify target directory at the end of the command? ie git clone git@repo . ?06:46
vmiklos left06:52
aspotashev|eeepc left06:54
vmiklos joined06:55
naeu joined06:56
Paf left06:56
anjalishenoy left06:58
naeu_ joined07:04
khmarbaise joined07:05
aspotashev|eeepc joined07:05
tvakah joined07:08
hobodave_ left07:08
darrob left07:09
orbii joined07:12
kalle_ left07:12
naeu left07:13
darrob joined07:13
kalle_ joined07:13
naeu_ left07:15
naeu joined07:15
Enselic joined07:17
dodo_the_last left07:20
kraymer joined07:20
dodo_the_last joined07:20
Arrowmaster hulo: yes07:21
naeu left07:22
Weaselweb joined07:22
wmoxam joined07:23
neoeinstein left07:24
neoeinstein joined07:25
drizzd joined07:30
Enselic left07:31
hachi ugh, gitweb README says there are a ton of Environment variables I can set to configure things07:31
reading the code... they're all gone07:31
DavidKlein joined07:33
aspotashev|eeepc left07:34
aspotashev|eeepc joined07:36
dwave joined07:37
JensB joined07:38
JensB hi everybody07:38
hachi hi doctor nick!07:38
JensB I accidentally --amended to a commit I had already 'git svn dcommit'ed. It's just the deletion of a single file. but now (of course...) the dcommit fails. how do I undo this?07:38
mugwump using the reflog07:39
git reset HEAD@{1}07:39
khmarbaise left07:39
mugwump (use git reflog to see exactly what value to use07:39
)07:39
sunblushsunblush|away07:40
JensB the value should be the one showing "commit (amend): ...", right? this would be HEAD@{2}07:40
before that I have HEAD@{1}: checkout: moving from svon to b13dbfc2...07:41
and HEAD@{0}: rebase: updating HEAD (this is how I found out it didn't work)07:41
mugwump, "git reset HEAD@{2}" did not have any effect (no ouptut, no change in 'git status'), is that correct?07:42
Davedan joined07:43
woei joined07:44
Davedan I have two separate projects each with its own .git folde. If I have identical file in both projects, does git aware of that and saves only one blob?07:45
killerchicken Re-asking a question from earlier: How can I update a bare repository from a remote repository, so that gitweb will show the updates?07:46
mugwump JensB: what it should do is make it so that 'git diff HEAD' now shows changes07:46
drizzd_ left07:46
JensB mugwump, thanks07:46
mugwump then you can 'git commit' and 'git svn dcommit'07:46
JensB I'll try, thank for pointing me to git reflog07:46
mugwump sees lots of questions, runs07:47
hachi mugwump: why am I here?07:47
what does this all mean?07:47
Arrowmaster left07:51
wmoxam left07:51
Arrowmaster joined07:53
eletuchy_ joined07:54
sdizsdiz-afk07:56
mbuf joined07:56
mbuf 'git reset HEAD file' and 'git rm file --cached' are the same?07:57
quentusrex Help. I'm in the middle of a conflicted merge, but I didn't change anything. I'm trying to pull the latest HEAD from a remote repo...07:58
Any ideas?07:58
Automatic merge failed; fix conflicts and then commit the result.07:58
that's the error.07:58
rylar joined08:05
jamescarr_ left08:08
eletuchy left08:10
dedmajor left08:11
mikl left08:11
qhoxie left08:11
jamescarr_ joined08:11
mikl joined08:12
kalle_ left08:12
sunblush|away left08:12
allagator left08:13
rylar left08:14
eletuchy_ left08:14
kalle_ joined08:18
Weiss joined08:27
solar_ant joined08:27
transplant joined08:27
mikl left08:28
jfkw joined08:29
transplant google switched to mercurial?08:31
khmarbaise joined08:32
RodP2 joined08:34
trmanco joined08:35
kuadrosx left08:36
hachi doener: your example from much earlier today has a flaw in it... I'd love to discuss if you have time sometime08:38
TokyoDan left08:40
gilimanjaro joined08:42
doener hachi: got a "short version"?08:42
hachi when you do the clone of the 'bare' repo in your examples08:43
the branches all show up as refs/remotes/origin/$SVN_BRANCHNAME08:43
tlrobinson joined08:43
doener yeah, expected08:43
hachi but git svn is expecting them by default to be in refs/remotes/$SVN_BRANCHNAME08:43
doener hachi: that's why the "git svn init" call at the end gets --prefix=origin/08:44
hachi unless this behavior has changed since I last built my git08:44
ahh, I missed that detail08:45
cilly joined08:46
transplant left08:46
tlrobinson i seem to be having trouble configuring which remote branch to use for push08:47
i have "push = refs/head/experimental" under my "exp" branch08:48
aspotashev_ joined08:48
doener branch? push settings are setup for remotes, not branches08:48
tlrobinson but when i do "git push" while that branch is checked out it tries to push master to master08:48
oh08:49
AkumaStreak left08:49
tlrobinson that would explain it. there's no way to set it on a per-branch basis?08:49
krawek left08:49
doener if you just want "push the current branch" behaviour, you can set remote.<name>.push to HEAD08:49
tlrobinson ah08:50
what if i want "push branch foo to remote branch bar, branch x to remote branch y, etc"08:52
Davedan left08:52
tlrobinson (where git push acts on the current branch)08:52
orbii left08:55
solydzajs_ joined08:55
SRabbelier joined08:56
qhoxie joined08:57
solydzajs__ joined08:57
solydzajs_ left08:58
solydzajs__ left08:58
solydzajs left08:58
solar_ant left09:00
aspotashev|eeepc left09:02
solar_ant joined09:03
khmarbaise left09:08
JensB left09:11
kalle_ left09:12
ned left09:13
jnareb joined09:14
jnareb left09:16
kalle_ joined09:18
bobesponja left09:20
Octalot left09:23
tzafrir_laptop joined09:23
tzafrir_laptop I put a remote copy of a local repo of mine over http . When trying to clone that remote copy I get:09:24
warning: remote HEAD refers to nonexistent ref, unable to checkout.09:24
I have no problem cloning the same directory when working localy on the server09:25
the URL: http://git.tzafrir.org.il/git/asterisk-tools.git09:25
gilimanjaro left09:26
drizzd You have to run git update-server-info in the http-hosted repo. Also enable the post-update hook if you don't push to it over http execlusively.09:27
jayallenjayallen-afk09:27
chalky joined09:27
cilly left09:28
tzafrir_laptop drizzd, run where?09:28
(and no: this is a read-only repo)09:28
fynn left09:28
tzafrir_laptop I push over ssh09:28
vuf joined09:28
ned joined09:29
drizzd You can push over ssh to a repo which is also accessible via http.09:29
tzafrir_laptop ah, ok09:29
drizzd In that case you need to run git update-server-info every time you push over ssh, because09:29
the ssh protocol does not need it09:30
So you let the post-update hook do it for you09:30
in any case, it doesn't hurt to enable to post-update hook09:30
ocornu left09:31
drizzd I wonder why it doesn't complain about missing info/refs. I'm sure it used to...09:34
tzafrir_laptop I ran 'git update-server-info' on the repo on the server, but still get the same error09:34
drizzd Here it does, actually. Do you have a very old git version?09:35
tzafrir_laptop The one from Debian Stable . 1.5.609:35
1.5.6.509:35
drizzd well, info/refs is still not there. It should have been created by git update-server-info.09:35
That's not too old.09:35
tzafrir_laptop what does this message mean technically? Which specific ref?09:35
err... which HEAD09:36
?09:36
drizzd it probably refers to the master branch, which it can't find without info/refs.09:37
tzafrir_laptop 1c19aa9ba240b7a84b431ee1aef57bcb3b256eef refs/heads/master09:39
.git/objects/1c/19aa9ba240b7a84b431ee1aef57bcb3b256eef exists as well09:39
MisterN joined09:40
drizzd tzafrir_laptop: I know. You need info/refs for git's http protocol to find it. That's why I told you to run git-update-server-info09:40
tzafrir_laptop it's just the all I have is a technical error message09:41
the standard google procedure did not help. Thus I try to actually understand it09:41
drizzd what's there not to understand?09:42
tzafrir_laptop what does 'remote HEAD' in the message refer to?09:43
drizzd tzafrir_laptop: it refers to the file HEAD in your remote repo09:43
HEAD denotes the currently checked out branch09:43
The error message has been fixed since your version of git. It's now "fatal: http://git.tzafrir.org.il/git/asterisk-tools.git/HEAD/info/refs not found: did you run git update-server-info on the server?"09:44
solar_ant left09:45
solar_ant joined09:45
drizzd oops, just http://.../asterisk-tools.git/info/refs09:45
vienova joined09:47
yann joined09:47
tzafrir_laptop Hmm... seems I had to use: git update-server-info --force09:47
felipec joined09:49
drizzd Interesting. It says "When you remove an existing ref, the command fails to update info/refs file unless --force flag is given." I wasn't aware of that. But I don't see how it can be relevant for your case, since you didn't have an info/refs file in the first place.09:49
cydork_ joined09:50
mbuf if i ammend a commit (by mistake), how can I undo the same?09:51
undo, git commit --amend09:52
drizzd mbuf: each time you commit the old commit is stored in the reflog09:52
mbuf drizzd: i see09:52
drizzd you can refer to the previous commit using HEAD@{1}, HEAD@{2} and so on09:52
eletuchy joined09:52
drizzd so you can undo commit --amend by resetting to HEAD@{1}09:53
mbuf drizzd: cool09:53
drizzd (be careful this removes local changes) git reset --hard HEAD@{1}09:53
mbuf drizzd: of course09:54
tzafrir_laptop hmm.. no. My mistake. Working in the wrong remote repo.09:54
MisterN drizzd: @{n} is reflog, right?09:55
tzafrir_laptop and the relevant hook seems to be post-update09:55
drizzd MisterN: yes09:55
aziz joined09:56
drizzd tzafrir_laptop: indeed. You still need to run git-update-server-info yourself for the first time.09:56
MisterN: see also "git reflog show <ref>"09:58
aspotashev|eeepc joined09:59
sitaram tzafrir_laptop, drizzd: the -f to update-server-info only affects info/packs, not info/refs10:00
MisterN drizzd: possible quite useful. fortunately haven't needed it yet.10:00
aspotashev_ left10:00
chris2_ joined10:00
drizzd sitaram: The man page says something else10:01
Ademan joined10:02
sitaram drizzd: the man page does not even mention what -f does, other than the bug10:02
that is, it does not say when, apart from for deleted stuff, does -f do anything10:02
drizzd Yes, but either what you're saying is wrong or what the bug description says is wrong.10:02
cydork left10:03
drizzd So we should either fix you or the manpage :-)10:04
sitaram or the code, since I looked at the code just now :)10:04
(before I said that...)10:04
Iota joined10:06
drizzd sitaram: looks like you're right10:06
Iota Hi, I've got my git repository working and stuff, but I want it to login for another user I made just for the git repo.10:07
LotR joined10:07
tzafrir_laptop left10:07
Iota When I try to git clone from another computer, it asks me for the password for my personal account on the machine.10:07
What can I do to change the user? I've already set the user for the repository as the "git" user.10:08
drizzd Iota: man git-fetch, search for user10:09
Gitbot Iota: the git-fetch manpage can be found at http://git.or.cz/man/git-fetch10:09
Iota Ah, thanks.10:09
trmanco left10:10
sitaram drizzd: I prefer to say "looks like the code is right" :) What one could add to the manpage is a description that when packfiles get stale, you want "-f" to remove the corresponding info/packs and start from scratch10:11
or some such thing10:11
kalle_ left10:12
kalle_ joined10:13
drizzd sitaram: the bug the manpage is talking about has been fixed in 2005...10:14
Iota Sweet, so I can just tell people to git clone git@mymachine:myrepo.git.10:14
d0k joined10:14
sitaram oh wow. Although I don't get it really because there's a function called parse_pack_def that is supposed to check for stale pack names and pretend like "force" was applied if such is found10:15
drizzd: ^^10:15
drizzd I don't understand it enough to update the message either.10:17
sitaram drizzd: so there must be some combination of events that causes stale pack names in info/packs without being detected as stale? maybe... My programming-fu isn't that great these days so I'll just remember that if in doubt, use force :-)10:18
make like luke and use (the) force LOL10:18
Arafangion joined10:20
mbuf other than a pattern, do we need to specify anything else to git-grep ? git-grep commit (for example), doesn't return anything in the output10:20
thiago git grep <pattern> searches the current HEAD for that pattern10:21
additional options are: git grep <pattern> <commit> -- <paths>10:21
mbuf thiago: and that includes only the file sources?10:22
thiago what is there in addition to file sources?10:22
mbuf thiago: .git/ ?10:23
sitaram ignored files?10:24
girishr joined10:24
catalis_ joined10:24
trmanco joined10:24
girishr left10:24
thiago mbuf: right10:25
mbuf: it searches the commit10:25
.git isn't part of the commit10:25
nor are ignored or generated files10:25
mbuf thiago: ok, thanks10:25
johan-s joined10:29
Grahack joined10:34
solar_ant left10:35
catalis left10:36
hyperair left10:39
Frontier joined10:43
Frontier left10:44
davidad left10:45
solar_ant joined10:46
jettero how do you show what a tag points to?10:47
git show tagname prolly...10:47
saurabh1403 joined10:49
johan-s left10:53
techleopard joined10:55
catalis_ left10:58
codestr0m joined10:59
codestr0m I see pull as a command from git --help, but get the following error on opensolaris # git pull . branch ... git: 'pull' is not a git-command. See 'git --help'.10:59
Grahack left11:01
Iota This might be a silly question, but have you tried it with the hyphen?11:04
git-pull11:05
woei left11:05
drizzd codestr0m: git commands are stored in $prefix/libexec/git-core. Do you have those?11:05
codestr0m drizzd: /usr/libexec/git-core/git-pull11:07
sitaram left11:07
codestr0m that's not in my path.. (should it be?)11:07
drizzd codestr0m: no11:07
codestr0m something is broken I think I found it11:08
dodo_the_last left11:08
rudi_s joined11:08
codestr0m thanks11:08
lazyshrk left11:08
gilimanjaro joined11:09
vuf left11:09
codestr0m left11:11
kalle_ left11:13
mnick left11:14
froomis joined11:15
simosx joined11:15
kalle_ joined11:18
simosx left11:21
Tuomas joined11:25
aziz left11:28
gilimanjaro left11:30
gilimanjaro_ joined11:30
chalky left11:33
neoeinstein left11:35
aziz joined11:37
aziz left11:46
solar_ant_ joined11:47
aziz joined11:49
seangrove left11:53
jceb joined11:55
fridim_ joined11:55
solar_ant left11:57
tatsuyao joined11:57
parasti joined11:58
froomisfroom12:03
corni joined12:04
sdiz-afksdiz12:09
hummingkid left12:10
froom left12:10
sdizsdiz-afk12:11
vbabiy left12:11
kalle_ left12:12
kalle_ joined12:13
j416 left12:13
Arafangion left12:18
dreamcat4 joined12:22
dreamcat4 hi when i run "git stash save" it doesnt stash everything, only pre-existing modified12:24
not newly created files12:24
how best to "stash" those also ?12:24
chalky joined12:25
jceb left12:26
antoranz joined12:27
killerchicken dreamcat4: looks like that isn't possible atm. See http://kerneltrap.org/mailarchive/git/2007/9/29/32548012:31
dreamcat4: The workaround is to git add the files before stashing.12:31
dreamcat4 thanks @killerchicken12:32
so i can if i put them in the index (still uncommitted)12:32
well that's good enough12:32
tatsuyao left12:32
dreamcat4 i can unstage them after reapplying the stash12:32
dwave left12:32
killerchicken if necessary, yes.12:33
dreamcat4 thanks again, gotta go12:33
bye12:33
dreamcat4 left12:33
dwave joined12:33
voker57_ joined12:36
fmoreau joined12:36
fmoreau left12:37
fmoreau joined12:37
fmoreau left12:38
fmoreau joined12:38
bryanl joined12:40
sdiz-afksdiz12:40
gabeodess_ joined12:40
gabeodess_ hey, how do I create a branch of someone elses plugin?12:40
Ilari gabeodess_: Is it submodule or fully independent repository?12:41
gabeodess_ Ilari: umm... I'm not sure12:41
what's the difference12:41
or is there some good documentation you could point me to...12:41
Ilari gabeodess_: Do 'git submodule update' (and that kind of commands) sound familiar?12:42
gabeodess_ no12:43
gilimanjaro_ left12:43
gabeodess_ basically, there is a plugin I have been using (created by one of my associates), and I want to edit it, but not work on his master copy12:43
with the possibility of merging our copies at some point.12:43
dwave left12:43
Ilari gabeodess_: If you want just to work on it, just clone it and work on it. Maybe even create second repo somewhere publicly accessable and push it there.12:44
aziz left12:44
gabeodess_ my git commands have been mostly limited to add, commit, push, pull..12:44
saurabh1403 left12:44
jceb joined12:45
gabeodess_ I created a fork... which I think is what you are saying... but he seemed pretty adament that I should do a branch instead, but I'm not sure what the difference is.12:46
sitaram joined12:47
khmarbaise joined12:47
Ilari gabeodess_: Fork presumably refers to another publically accessable repo. Repository contains one or more branches (and branches are always local in Git).12:47
gabeodess_ Ilari: okay, so how would I create a branch then?12:48
I guess a branch would be a submodule?12:48
Ilari gabeodess_: Just clone it. Its another repo, so its also another branch.12:48
aziz joined12:48
antoranz left12:48
Ilari gabeodess_: Or if you have existing clone, use 'git checkout -b newbranchname <startingpoint>'.12:48
gabeodess_ Ilari: so then when I push, it wont push to the master?12:49
Ilari gabeodess_: Yes it would, but you don't have to push.12:49
Bass10 joined12:49
gabeodess_ Ilari: but I would want my version under source control12:49
Ilari gabeodess_: Also, if you start with multi-branch repos, install git completion package and configure shell propt to display what branch you are on. Less confusing that way.12:50
gabeodess_ ok12:50
jceb81 joined12:50
gabeodess_ Ilari: so you are suggesting that I do not make a branch? just clone and work on it locally?12:51
voker57 left12:51
Ilari gabeodess_: You can do either way. Clone to create new repo or create a new branch in existing repo. Either way, it will be a new branch.12:52
gabeodess_ okay, so how do I create a new branch in the existing repo?12:52
Ilari gabeodess_: 'git checkout -b <newbranchname> <startingpoint>'.12:52
gabeodess_: You can omit <startingpoint>. Then it starts from what you have currently checked out.12:53
j416 joined12:53
gabeodess_ cool, thanks, Ilari12:53
Ilari gabeodess_: But as said, multi-branch repos can be bit confusing. Displaying current branch name in shell prompt makes it less so.12:54
jceb81 left12:54
gabeodess_ ok, I'll look into that12:55
thanks12:55
Ilari gabeodess_: Many have had puzzling problems, and it eventually turned out that they where running commands on the wrong branch.12:55
aziz left12:55
gabeodess_ left12:55
saurabh1403 joined12:56
ben_h joined12:56
hulo hello. i need a bit of help setting up a branch. i did the following 1. git init 2 git add test 3 git commit -m 'test commit' 4 git remote add origin [email@hidden.address] 5 git push origin master 6. git checkout -b scratch 7. (modify files) 8. git commit -m 'commit from scratch' 9. git push12:57
and that fails to recognise the scratch branch12:57
altrux joined12:57
hulo at step 6, i tried 6. git push origin origin:refs/heads/scratch12:57
solar_ant_ left12:57
aziz joined12:58
hulo error: src refspec origin does not match any.12:58
Ilari hulo: It doesn't try to push it because remote end doesn't have scratch branch and you didn't explicitly say you want to push it.12:58
hulo: 'git push origin master' means push 'master' to remote repo 'origin'.12:59
hulo Ilari: ah, i have to explicitly say it12:59
git push origin scratch at 9.12:59
?12:59
Ilari hulo: Pretty much.12:59
hulo: Its quite handy to explicitly have to say, since you might have branches you don't want to push.12:59
sergiodj left13:00
Nemcue joined13:00
Ilari hulo: Better to make software DTRT 99% of time and offer the manual thing for the 1% than do the manual thing 100% of time.13:01
Hypnos joined13:01
Ilari hulo: Well, actually this isn't even the "fully manual" thing.13:01
solar_ant joined13:02
Nemcue Hey, I'm trying to reach the git-repos from a rails script/plugin install, but it doesn't work for some odd reason13:02
I can install plugins from other repositorys, but not from git..13:02
Ilari hulo: The fully manual thing would let to specify commit by SHA1 expression and specify name of ref to save it as.13:02
Nemcue: Define "Doesn't work".13:03
Nemcue Oh, sorry13:03
well.. it just doesn't do anything13:03
Says "plugin: version unknown"13:03
and downloads nothing.13:04
hulo Ilari: i created a script that sort of automates branch creation (based on a website's guide) http://pastebin.com/f4f47db313:04
Ilari Nemcue: Maybe you need to grab the submodules as well (git submodule update --init)?13:04
hulo Ilari: can't that be run at step 6. ?13:04
leanucci joined13:04
hulo ie do i create the remote branch first, or do i create the local one, and then push it?13:04
ben_h left13:05
Ilari hulo: No need to fetch. Push creates/updates remote branch mirrors for branches it touches.13:05
dbb left13:05
chris2_chris213:05
jceb81 joined13:05
Ilari hulo: And hardcoding local side starting point to 'origin' is bit questionable.13:05
hulo Ilari: is any part of that script obviously broke?13:06
ikanobori left13:06
hulo Ilari: this is a very basic git repo (for learning purposes) and it'll always be origin13:06
jceb left13:06
Ilari hulo: And hopefully that 'origin' means 'refs/remotes/origin/HEAD' and not 'refs/heads/origin'...13:06
scarabx joined13:06
solydzajs joined13:06
hulo huh?13:07
you mean origin is ambiguous?13:07
mikearr joined13:07
Ilari hulo: As ref, 'origin' can expand to 'refs/origin', 'refs/heads/origin' (local branch 'origin'), 'refs/tags/origin' (tag 'origin'), 'refs/remotes/origin' (remote tracking branch 'origin') or 'refs/remotes/origin/HEAD' (remote tracking branch 'origin/HEAD').13:08
Nemcue oh. err. wrong git.13:09
Nemcue left13:09
Ilari hulo: And clone does set up remote tracking branch 'origin/HEAD' -> can be shortened 'origin'.13:10
hulo Ilari: wow13:10
Ilari hulo: Origin can also be nickname of repository. In that role, it designates another repository.13:10
hulo Ilari: hm, so in the contex tof the script, which seems to create a branch at the remote site (github), which should i be using?13:10
i udnerstand now that it shoudl be remote13:10
orbii joined13:11
Ilari hulo: Well, this is about what is the starting point of the new branch.13:11
hulo: Note that repositories can have multiple branches. So its not the branch from repository origin.13:12
kalle_ left13:12
hulo Ilari: basically, i wanted to create the branch locally, make changes, the push to github13:13
*branches13:13
Kbyte joined13:13
hulo i understand now that avoidign the script would be my best bet13:13
kalle_ joined13:13
sikanda joined13:13
leanucci left13:13
montylounge joined13:13
hulo as a: git checkout <newbranch_name>; changes; git commit ..; and git push origin <newbranch_name> would do13:14
dwave joined13:14
Ilari hulo: The way its done in 'git checkout'/'git branch' is that if unspecified, the starting point defaults to HEAD.13:14
jceb81 left13:15
Ilari hulo: So maybe you want to edit the script so it takes optional second argument that defaults to HEAD, and change that push refspec to be '${second_argument}:refs/heads/${new_branch}' or so.13:15
jceb joined13:17
corni left13:17
hulo Ilari: so, as an example second_argument could be refs/remotes/origin/HEAD ?13:17
dbb_ joined13:17
Ilari hulo: Nope, as an example 'HEAD'.13:17
bremner_ joined13:17
Ilari hulo: Which is its default value.13:17
hulo: One bad side about that change is that it requires relatively recent Git.13:18
hulo: So for exampple 'mkbranch foo bar' invokes 'git push origin bar:refs/heads/foo', and 'mkbranch baz' invokes 'git push origin HEAD:refs/heads/baz'.13:20
hulo Ilari: is 1.6.2.4 sufficient?13:20
Ilari hulo: According to /topic, its the newest release. It is new enough.13:20
hulo git push origin HEAD:refs/heads/${branch_name} still gives me the error13:22
Ilari hulo: What error?13:22
hulo: Hopefully the final command invoked doesn't have {} with it. Even through '${branch_name}' would be valid name for a branch.13:23
hulo fatal: remote part of refspec is not a valid name in HEAD:refs/heads/13:23
Ilari hulo: ${branch_name} seems to expand to empty string.13:24
hulo ah13:24
Ilari: i set branch_name in the script at the pastebin13:24
http://pastebin.com/m578e9f4213:25
Hypnos left13:25
Ilari hulo: Its HEAD, not HEADS13:25
hulo: You are passing a parameter to that script.13:25
hulo oh yeah, it's HEAD. i just modified on-site to show that i updated as you advised. small typo. local script has HEAD13:26
okidogi joined13:26
okidogi How can I merge two commits to one, I just forgot the command.13:27
Ilari hulo: Also, that pull is bit questionable. It will only get anything if somebody pushes after step 3.13:27
romao joined13:27
drizzd okidogi: git merge13:27
Ilari okidogi: Or 'git rebase -i'?13:27
hulo Ilari: the website just listed that action as a way to ensure everything was up to date13:28
i wish i could find the url again13:28
seems the author would have problems with it too13:28
nothingHappens_ joined13:28
okidogi Ilari: I've no idea. I just commit twice but I want merge them together.13:28
Ilari okidogi: If thay are two last commits and neither is merge, 'git rebase -i HEAD~2' and mark the latter commit as 'squash'.13:29
lazyshrk joined13:29
Ilari hulo: There are lots of scripts that are hacked together by people who don't really understand what they are doing.13:30
benn_d joined13:30
okidogi Ilari: What do you mean by squash?13:31
mlins left13:31
Ilari okidogi: As default, the action for both is 'pick', changing that to 'squash' combines commit with the previous one.13:31
okidogi Ilari: Ah, I see, thanks ;-)13:32
Ilari okidogi: Rebase interactive mode is swiss army knife of revision history manipulation.13:33
bremner__ joined13:33
okidogi Ilari: This feature seems really convenient, good point.13:34
j416 left13:34
gabeodess joined13:35
Ilari okidogi: The main limitation is that it can't cope properly with merges.13:35
solydzajs left13:35
okidogi Ilari: when?13:35
bremner_ left13:36
Ilari okidogi: There's some preserve merges option, but it doesn't work in some older versions. Also, nonlinear rebasing would need extensions to script syntax.13:36
sukanto joined13:36
okidogi Ilari: It seems good enough for me now. I will prefer simply skip this. :)13:37
sukanto can anyone help me with a git clone issue ?13:38
Ilari sukanto: What issue?13:38
sukanto tmp $ git clone git://172.16.241.132:9418/linux-2.6.27.4.git Initialized empty Git repository in /tmp/linux-2.6.27.4/.git/ 172.16.241.132[0: 172.16.241.132]: errno=No route to host fatal: unable to connect a socket (No route to host) fetch-pack from 'git://172.16.241.132:9418/linux-2.6.27.4.git' failed.13:38
oops13:39
tmp $ git clone git : //172.16.241.132:9418/linux-2.6.27.4.git13:39
Ilari sukanto: Network-level error.13:39
sukanto but i can ping to that host13:39
Bass10 left13:39
Ilari sukanto: Something's seriously wrong then. No route to host is layer 3 error. Ping works at layer 4, so if layer 3 doesn't work, ping can't work. Unless that error is spoofed.13:41
sukanto: Is it transistent or persistent error?13:41
drizzd does the git protocol support the url:port syntax?13:41
aspotashev|eeepc left13:41
sukanto event without port it is not working13:41
*even13:41
sikanda_ joined13:41
gabeodess terminal question: how do I remove a directory? I tried rmdir /my_directory and it says it's not empty13:41
bentob0x joined13:42
qrush joined13:42
Ilari sukanto: For me, that command seems to "hang" with connection in state SYN_SENT.13:42
lazyshrk gabeodess; rm -rf /yourdir13:42
gabeodess; but be careful with -rf13:43
gabeodess thanks, what's -rf?13:43
remove files?13:43
lazyshrk -r is recurse13:43
-f is force13:43
gabeodess ah13:43
thanks lazyshrk13:43
Ilari sukanto: Firewall problems?13:43
drizzd rm is remove13:43
Ilari sukanto: The usual way to test is via telnet: 'telnet 172.16.241.132 9418'. And err... Is that IP even globally routable?13:45
hulo left13:45
sukanto let me check13:45
lazyshrk Ilari; it isn't... is it?13:45
Ilari sukanto: At least it doesn't have RDNS.13:46
gitte joined13:46
plaes joined13:46
sukanto even telnet doesn't works13:46
drizzd IIRC 172.16-31.x.x is for local networks just like 10.x.x.x and 192.168.x.x13:46
sukanto ya it is on a local network13:47
host-only network of vmware13:47
plaes hey.. any recommendations on how to use git with bash scripts...13:47
gabeodess I have a rails app that uses a 'schedulable' plugin. I'm trying to create a branch for the schedulable plugin, so I deleted the plugin, then cloned it, then from within vendor/plugin/schedulable I ran git checkout -b gabeodess. then I tried pushing, and I got "you can't push to git://github.com/user/repo.git Use [email@hidden.address] not really sure what to do with that, help?13:47
plaes currently git does not sensible return values13:47
Leemp joined13:47
Mr_Grieves|zzzMr_Grieves|13:47
agile left13:48
plaes any hints how to detect whether the repo has changes?13:48
lazyshrk plaes: git status13:48
Sho_ joined13:49
drizzd test -n `git diff-index --name-only HEAD`13:49
plaes lazyshrk: did you read stuff I wrote before that?13:49
MarcWeber plaes: If you really want to dive in have a look at the git repo itself. It contains many examples13:49
plaes MarcWeber: thanks :)13:49
Ilari blackholes those networks.13:50
plaes well, now that gnome switched from svn to git, I have to rewrite my translation committing scripts :(13:50
mikl joined13:51
Ilari plaes: When using git from bash, avoid high-level operations and use the lower-level ones...13:52
plaes: What do those scripts even do?13:52
jrmuizel joined13:53
plaes it pushes translations (after review) from our local svn to gnome one...13:54
Ilari plaes: Well, if it just transporting commits raw, its just git push.13:54
Ademan left13:54
lazyshrk anyone know why my newly cloned repo (msysgit), has a changed file (that I haven't touched) where it has removed every single line, and added them again, so it's the same file. i've tried to checkout the file, checkout -f, reset --hard, core.autocrlf = input, neither of which does anything. if I reset to the previous commit in gitk, the changes disappear for a second, then just pop back up.. any tips?13:55
plaes Ilari: yeah, but I need to do some checking first.. figure out the branch, check for local changes and finally push13:55
offby1 lazyshrk: I generally set core.autocrlf to false when I use msysgit; give that a whirl13:56
lazyshrk offby1; i'll try that.. thanks13:56
Ilari plaes: Yeah, checking for local changes is valuable in order to give clearer error messages.13:57
lazyshrk offby1; hallelujah.. it worked! thanx13:57
sukanto left13:58
Ilari plaes: For true low-level push operation, there is git send-pack. But that can only handle file:///, git:// (very rarely used with it) and ssh://.13:58
kukks joined13:59
solar_ant left13:59
markelikalderon joined14:00
Flathead left14:00
Ilari plaes: And to really control what goes on, you would need to reimplement pack sending. :-> There's tools to make packs to send (which is the most difficult step).14:00
plaes Ilari: I don't really need this stuff atm.. I think git add file; git commit -m file "updated file" ; git push is enough...14:01
mbuf left14:02
Ilari plaes: That's bit more than just transporting commits. That's also making them.14:02
plaes yeah14:03
HG` joined14:03
j416 joined14:04
sikanda left14:04
bremner_ joined14:04
solar_ant joined14:05
bremner_ left14:05
Grahack joined14:07
iamwilhelm joined14:09
Ilari plaes: And "this isn't SVN". Git can do many kinds of multi-repo workflows that are simply not possible with SVN.14:10
plaes: And that kind of workflows tend to be needed in order to scale to highly decentralized projects.14:10
btanaka joined14:11
plaes Ilari: I'm just trying to keep things simple..14:11
jrmuizel left14:12
qrush left14:13
Ilari plaes: Ah yes, it's Gnome after all. :-)14:13
plaes well, to tell you the thruth, each repository conversion has made things a bit more harder..14:13
Casan joined14:14
jrmuizel joined14:15
plaes with cvs it was possible to download/update only the required file, with svn you could only download whole directory.. and for git you have to download whole source14:15
qrush joined14:15
bremner__ left14:15
Ilari plaes: The smallest transferable unit with git is single branch.14:15
plaes yeah.. but see how things have gone actually worse :P14:16
translators mostly need to commit one file every once in a while14:16
Ilari plaes: At least it merges well.14:17
rudi_s plaes: If you just want the latest few commits you can use git clone --depth, so not the whow repository is necessary.14:17
s/whow/whole/14:17
Siavash joined14:18
Siavash hi all14:18
Ilari ...14:18
plaes rudi_s: yeah, I know that.. but in order to update a single file I still either need to download whole source or cache it on my hdd :(14:18
Siavash is it possible to get the diff of a file on 2 different branches14:18
?14:18
Ilari Siavash: 'git diff branch1 branch2 -- file'?14:19
plaes git diff branch1..branch2 ?14:19
gabeodess can anyone help me with this?14:21
context if you read the man page14:21
it has examples14:21
that explain exactly how to compare branches14:21
gabeodess I have the gabeodess branch locally...14:21
jackdempsey joined14:21
gabeodess sorry... with this http://pastie.org/458009 ...14:23
Siavash thanks14:23
dwave left14:24
aspotashev|eeepc joined14:24
Ilari gabeodess: You can't push over git:// (at least to github).14:25
gabeodess: And addtionally the URL syntax is wrong.14:25
gabeodess Ilari: oh, so how do I push my branch?14:25
Ilari gabeodess: The Web page for that repository should give the push URL.14:25
gabeodess oh...14:26
Ilari: I see a 'clone url' where would I find the 'push url'?14:26
Ilari gabeodess: Maybe 'git@github.com:keithmgould/schedulable.git' or something.14:26
gabeodess Ilari: okay, that gave me a permission denied message.14:28
Ilari gabeodess: Except that that command pushes the ref as 'gabeodes'. The default branch is 'master', and there might not be way to change that (with github) and clone doesn't take missing default branch too kindly...14:28
gabeodess but the repo is public...14:28
Ilari gabeodess: You have account there?14:29
gabeodess I have my own account14:29
Ilari gabeodess: Presumably not 'keithmgould'?14:29
gabeodess but shouldn't I not need one if it is a public repo?14:29
cilly joined14:29
gabeodess Ilari: right, not keithmgould14:29
Ilari gabeodess: You need one for pushing.14:29
yann left14:29
gabeodess so I can't push to keithmgould?14:30
Ilari gabeodess: Its keithmgould/schedulable.git. Wheither you can push to it depends on wheither you have been authorized to do so by admins of that repo.14:30
gabeodess I see14:31
Siavash left14:32
j416 left14:32
jamescarr_ left14:34
jceb left14:35
kuadrosx joined14:35
gabeodess Working now. Thanks Ilari.14:35
aziz left14:35
airtonix left14:37
altrux left14:39
eletuchy left14:42
dbb_ left14:42
Enselic joined14:43
hacim joined14:44
hacim so I converted a svn repository to git and the tags ended up as directories... is there a way I can turn a set of directories into tags?14:45
Ilari hacim: You didn't pass -s or the correct layout to init/clone?14:45
hacim Ilari: yeah, I think probably not14:46
Ilari hacim: That could explain it.14:46
gabeodess Ilari: how can I configure to git to push to my branch when I send 'git push' ?14:46
hacim Ilari: i dont have the original svn repo available anymore, so I'm not able to re-do it14:46
Enselic left14:46
schacon joined14:47
Ilari gabeodess: You need to configure remote for that repository (man git-remote) and then give it tracking data (branch.foo.remote and branch.foo.merge)14:48
Gitbot gabeodess: the git-remote manpage can be found at http://git.or.cz/man/git-remote14:48
btanaka left14:48
gabeodess thanks guys14:48
Ilari hacim: Then probaly those tags aren't the only problem...14:48
hacim Ilari: actually... it looks like I *do* have it14:48
Ilari: now, I just have to do it the right way this time14:49
IListenU joined14:49
jrmuizel left14:49
aspotashev|eeepc left14:50
IListenU screen: http://parduoduv.puslapiai.lt where's problem? please help.14:50
Ilari hacim: And turning set of directories into tags wouldn't have cut it. You would have needed the SVN directory copy data in order to reconstruct the history, as SVN has only single linear history at versioning level.14:50
IListenU left14:50
hacim Ilari: ok, i can re-do it, but I want to make sure I do it right this time14:51
sdiz what does "git show --raw" supposed to do? it is not documented, and it is different from --pretty=raw14:51
hacim Ilari: is there a good guide somewhere that I should use?14:52
jamescarr_ joined14:52
hacim i used this before I think: http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/14:52
Ilari hacim: Doing it right is more than getting the layout right. Its also about marking merges, getting authors right (--authors-file), stripping metadata, stripping any leading directories, etc...14:52
hacim: Its fairly easy to do when you are migrating, but royal pain to do afterwards.14:53
hacim Ilari: ok, I know how to do the authors-file bit, but the stipping and merging I'm not sure because that particular blog didn't even mention it14:55
it looks like I can use --stdlayout14:56
dermoth joined14:56
Ilari hacim: There's two ways to strip metadata. Either don't generate it in first place or strip it afterwards with git-filter-branch --msg-filter...14:56
okidogi left14:56
hacim Ilari: yeah, looks like I used --no-metadata before14:56
Ilari hacim: But OTOH, metadata can make fixing the merges easier.14:56
hacim: Is that repo even multi-branch? If not, there's no merges to fix.14:57
jrmuizel joined14:58
jackdempsey left14:58
bobmcw joined14:58
sdizsdiz-afk14:59
bobmcw_ joined15:00
sdiz-afksdiz15:01
sdizsdiz-afk15:01
aziz joined15:01
cilly left15:02
jackdempsey joined15:02
montylounge left15:02
thiago thinks the metadata is very useful15:04
aziz left15:04
thiago many commits refer to revision numbers15:04
brtzsnr joined15:04
Ilari If I would retain that data, I would format it in nicer way.15:05
plaes left15:05
Ilari Or I would fix the references to other commits.15:06
thiago formatted it in a nicer way in svn-all-fast-export15:06
Ilari thiago: Example?15:06
thiago and, most importantly, I removed the URL to the server15:06
that's useless information15:06
dermoth left15:06
aziz joined15:06
dermoth joined15:06
saurabh1403 left15:07
hacim Ilari: no, there is one branch. however its worse, I only have a checkout of the repository, not the original15:07
err, rather there is one additional branch15:07
thiago svn path=trunk/somewhere; revision=NNNN15:07
Ilari thiago: Is it smart enough to coalesce tags to their parent commits if possible?15:09
hacim: Has there been merges between those two branches?15:09
hacim Ilari: I dont think so15:09
Ilari hacim: Maybe grepping version history with keyword "merge" could be useful.15:10
thiago Ilari: SVN doesn't have tags15:10
Ilari: and I'm treating that as such15:10
SVN only has branches15:10
jackdempsey left15:10
fmoreau left15:11
solar_ant left15:12
kalle_ left15:13
kalle_ joined15:13
Iota left15:13
Ilari In my view, SVN doesn't even have branches. It doesn't even have multiple 1 parent branches with implicit root revision. From that, remove requirements for implicit roots and allow derivation from multiple states and you get git branch model...15:14
aziz left15:14
thiago yep15:15
I had to write some heuristic code to determine what a copy actually meant15:15
hacim hrm, it seems I dont have a complete copy of the original svn repo any longer15:15
thiago I think there are 4 types of copy-with-history in SVN (IIRC):15:15
- actual branching: copy of a module root to a path where it is known to be a branch15:16
- copying inside one repository: source and target paths are inside the same module and branch15:16
bobmcw left15:16
dermoth left15:16
thiago - copying of a subtree to a branch: i.e., creating a branch but only of the subtree15:17
dermoth joined15:17
Ilari hacim: Ouch. You are going to need to infer the missing data and fix the git repo accordingly. :-/15:17
thiago - supermodule copying: i.e., copying of a directory that contains modules15:17
bobmcw_bobmcw15:18
hacim Ilari: yeah, i've got all the tags imported into a tags dir in the git repo, and I dont care about the history... i'd just like to turn those into proper git tags at this point15:18
Ilari hacim: Presumably you also have /trunk and /branches/foo?15:18
ocornu joined15:19
dwave joined15:19
hacim Ilari: yeah, and actually the only branch in /branches is a junk one, so that can be ignored15:19
jackdempsey joined15:20
thiago hacim: once the import process is done, you can post-process and find proper tags15:20
if your "tag" branch contains exactly one commit and it's not making any changes, then it's a Git tag15:20
Ilari hacim: So its OK to lose it in import? And do those tags correspond to some versions on trunk?15:20
hacim thiago: i've already imported. I've got a tags/ and trunk/ directory in the root of the repo15:20
Ilari hacim: Ok, first make a backup of that repo.15:21
hacim Ilari: yes, its ok to loose that branch. the tags do correspond to some versions on trunk, yeah15:21
Ilari: already done :)15:21
thiago hacim: you don't see tags/ and trunk/ in Git15:21
they are branches. They'd be in .git/refs/tags and .git/refs/heads15:21
dwave left15:21
hacim thiago: no, they are actual directories15:21
Ilari hacim: First use filter-branch with --subtree-filter to extract the /trunk.15:21
thiago hacim: no... they're not :-)15:21
hacim: if you see them, you did the import wrong15:22
Ilari thiago: That repo is imported wrong.15:22
thiago: And original SVN repo has been apparently lost.15:22
thiago oh15:22
that's a bummer15:22
directory-filter will help you make sense of the history of each branch15:22
the problem will be stitching the history together afterwards15:23
gwoo left15:23
Ilari thiago: There's only apparently one. Fortunately. Unfortunately, there's tags.15:23
thiago ah15:23
if tags were done right, they have exactly one commit15:24
hacim Ilari: i think you mean --subdirectory-filter ?15:24
thiago and the contents of the tag dir is exactly the contents of trunk at the time the tag was made15:24
hacim thiago: right, thats what is in tags/15:24
Ilari hacim: Yeah, that.15:24
hacim this git repo is published, if you all want to have a look15:24
faithfulgeek left15:25
Ilari hacim: The fixed-up thing will be incompatible with it.15:25
neoeinstein joined15:25
hacim Ilari: thats fine, i was just thinking that you might have a clearer view of what I've got if you had it in front of you15:25
its git://labs.riseup.net/crabgrass.git if you want to look15:25
Ilari hacim: Also, you probably should save output of 'git ls-tree HEAD:tags'. That contains information about where tags point.15:26
dermoth left15:27
Ilari hacim: That should dump lots of lines of form "040000 tree 2b615ce7d59f5bc5a4a5ea829c396a2016f63285 tagname".15:27
hacim yeah, it does15:27
dermoth joined15:27
bcardarella joined15:27
Ilari hacim: With that information, its possible to match revisions after rewrite to tags (with some searching).15:28
thiago it's easier to match by history15:28
Ilari hacim: So save that info somewhere.15:28
thiago do a git log -n2 tags/tagname15:28
you'll see the commit that created the tag and one commit before15:28
the SHA-1 that ls-tree outputs for the tag name should match exactly the ls-tree output of trunk in that commit15:29
if that happens, you have a tag15:29
hacim Ilari: thiago git log -n2 tags/tagname only shows me one commit (the one before)15:29
but wait, we are getting ahead of things here15:29
I still haven't figured out how to properly do the git-filter-branch --subdirectory-filter trunk part yet15:30
ProperNoun joined15:30
Ilari hacim: Basically, matching can be done by trying 'git rev-list HEAD~n:' for various values of n (starting from 0 upwards). If you get match to saved ID entry pointed to, then 'git tag tagname <ID>'.15:31
thiago hacim: oh, right, of course15:31
but do a git log -n2 on that commit now (without the path)15:31
jrmuizel left15:31
Ilari hacim: 'git filter-branch --subdirectory-filter trunk master'?15:31
hacim Ilari: ok, i've got the ls-tree info saved15:31
ok Ref 'refs/heads/master' was rewritten15:32
wshimmy left15:33
Ilari hacim: Now it should contain only the trunk branch contents.15:33
wshimmy joined15:33
hacim Ilari: right, it seems to15:33
djgera joined15:34
jceb joined15:35
jrmuizel joined15:35
Ilari hacim: For restoring the tags... Take the first tag. Extract ID given by ls-tree and name. Then find n such that 'git rev-parse HEAD~n:' gives such ID.15:35
aisbaa joined15:35
Ilari hacim: Then 'git tag tagname HEAD~n'.15:35
solar_ant joined15:35
hacim where n = the sha1?15:35
jackdempsey left15:35
Ilari hacim: n is small integer. Start from 0 and search upwards.15:36
dermoth left15:36
j416 joined15:36
Ilari hacim: I'll clone it and take a look. The IDs resulting from filter-branch should be stable.15:37
hacim Ilari: so, first I do git ls-tree HEAD:tags/<tagname> to get the ID?15:38
dermoth joined15:38
Ilari hacim: Use the saved output.15:38
hacim Ilari: I have not pushed the results of the filter-branch15:38
Ilari hacim: I should be able to reproduce it.15:38
hacim Ilari: yes, I'm looking at the saved output15:38
if I have: 040000 tree d82a4b0e2da4832719b6800180c1ff6d196dc55ebackupninja-0.3.415:38
err, the tab didn't represent15:39
Ilari hacim: It has ID of d82a4b0e2da4832719b6800180c1ff6d196dc55e and name backupninja-0.3.415:39
dermoth left15:39
hacim ok15:39
Ilari hacim: That's tree ID. Find the commit that has that as tree.15:39
hacim if I do: git rev-parse HEAD~d82a4b0e2da4832719b6800180c1ff6d196dc55e it says unknown revision15:40
Ilari hacim: For finding tree id commit has as tree, 'git rev-parse foo:', where foo is any valid commit.15:40
hacim ah15:40
Ilari hacim: Ah, I figured out simpler way.15:40
hacim oh great15:40
wshimmy left15:41
nis joined15:41
Ilari hacim: 'git log --pretty=format:%H\ %T'. That prints tree IDs in right column and corresponding commits in left column.15:41
HG` left15:42
Ilari hacim: Grep that for that tree ID.15:42
hacim ok, got that15:42
Ilari hacim: Then tag the commit given by corresponding left column value.15:42
hacim: Err... That repo appears to be post-filter state...15:43
hacim: And it doesn't seem to contain any state corresponding what was in that tag...15:44
hacim Ilari: errr, i gave you the wrong repo :PP15:45
Ilari hacim: Root dir contains: app AUTHORS Capfile CHANGES config db doc lang lib LICENSE log mods public Rakefile README script test tmp tools vendor15:45
hacim Ilari: git://labs.riseup.net/backupninja.git <--- thats the right one15:45
sorry, bad paste15:45
ok, so to tag the commit given by the corresponding left column value, I would do: git tag tagname HEAD~n where n=lefcolumnvalue15:46
Ilari hacim: Nope. The left column value is the commit ID.15:47
djgera left15:47
Ilari hacim: And you can directly tag that.15:47
hacim ok, so just git tag tagname <leftcolumnvalue>15:47
Ilari hacim: That first tag gives 9f6af22a4c83e1126cd8b2eea50663e891e8439c15:48
dermoth joined15:48
sikanda_ left15:48
jrmuizel left15:48
Ilari hacim: So 'git tag backupninja-0.3.4 9f6af22a4c83e1126cd8b2eea50663e891e8439c'15:48
faithfulgeek joined15:48
hacim Ilari: got it15:48
jerbear joined15:48
thiago or git tag -a15:49
jrmuizel joined15:50
dermoth left15:50
arohner joined15:51
hacim Ilari: interestingly, there are a couple in there that have no resulting tree id commit15:51
Ilari hacim: Ah, authors are already proper.15:51
sikanda joined15:51
hacim Ilari: the first 8 have them, but then the tag identified as 040000 tree 8d9f06695f0b9aaa5da6842ac7b4d9302fd1ee84 backupninja-0.9.1 doesn't output anything when I do git log --pretty=format:%H\ %T |grep 8d9f06695f0b9aaa5da6842ac7b4d9302fd1ee8415:52
Ilari hacim: They have been modified in tagging then... You need to do commits for those...15:52
fujin left15:52
justatheory left15:52
bcardarella left15:52
Ilari hacim: 0.9.3 doesn't have either. Well, maybe do 0.9.2 and rest that have them first.15:53
hacim Ilari: yeah 0.9.1 through 0.9.6 don't have them15:53
Ilari: i just did the ones that have them15:53
Ilari hacim: 0.9.2 does.15:54
LiamH joined15:54
hacim Ilari: yeah, i got that one. i misspoke when I said 0.9.1 through 0.9.615:54
Ilari hacim: 299a43e39e2a2e5bc05b1eca24212d7a39aefde915:54
hacim got it15:55
0.9 has one too, but the remaining do not (0.9.1, 0.9.3, 0.9.4, 0.9.5, 0.9.6)15:55
Ilari hacim: Going to need that backup of the repo. To find the versions previous to those tagged versions.15:56
vienova left15:56
jrmuizel left15:56
Tricon joined15:56
Ilari hacim: Looking at its history, no wonder it doesn't appear...15:57
qrush_ joined15:58
fujin joined15:58
hacim Ilari: in the svn repo I have tags for 0.9.5 and 0.9.615:58
dermoth joined15:58
Ilari hacim: Apparently all those where tagged incorrectly and manually fixed later.15:59
hacim the joys of learning svn15:59
hummingkid joined16:00
Ilari hacim: Ok, found base commit for 0.9.1.16:01
Octalot joined16:01
jzellman joined16:02
Ilari hacim: Maybe do something like 'echo Actual 0.9.1 tag | git commit-tree 8d9f06695f0b9aaa5da6842ac7b4d9302fd1ee84 -p 0e1bd269884c234dd76b00fa30bae674e82892bf' to make a commit for 0.9.116:02
mw left16:04
Ilari hacim: I found that 0e1bd... thingy by asking history for tags/backupninja-0.9.1 in pre-rewrite repo and picking first entry that has subtree tags/backupninja-0.9.1 that's also found from trunk and then do tree ID to commit ID lookup for that.16:04
hacim: That commit-tree outputs commit ID you can tag.16:04
solydzajs joined16:05
agile joined16:07
hacim was just taking notes on this16:07
HG` joined16:08
dermoth left16:08
bcardarella joined16:08
hacim Ilari: ok, tagged 0.9.1 with that16:09
dermoth joined16:09
bcardarella_ joined16:09
Ilari hacim: Well, maybe commit message like "Backupninja 0.9.1" could have been better...16:09
faithfulgeek left16:09
stmg joined16:09
Ilari hacim: At least better than 'Actual 0.9.1 tag'.16:10
neoeinstein is listening to an interesting talk at BarCamp Boston (#barcampboston) on Git feature branching.16:10
aspotashev|eeepc joined16:10
hacim Ilari: hehe, well no matter16:11
kate21de left16:11
hacim Ilari: ok, help me step through how you got that 0e1bd so I can do it for the other missing ones16:11
kalle_ left16:13
kalle_ joined16:13
Ilari hacim: The process for 0.9.3 is: First search history of tags/backupninja-0.9.3. The first commit doesn't have match, so try second one (95b5f3b632fbf492b41e8c353553a17582ccc281). Looking up 95b5f3b632fbf492b41e8c353553a17582ccc281:tags/backupninja-0.9.3 yields b5b5b296c3e266570a842d732ae7ace3f1c50029. Now doing tree-ID to commit-ID on that yields cf0e2ac5d5efba9bbc2efc79901467fd94cf3f1516:13
hacim: (that's for the 0.9.3 tag).16:14
stmg left16:14
hacim Ilari: searching the history of tags/backupninja-0.9.3 is doing: git log -- tags/backupninja-0.9.3 ?16:14
Ilari hacim: Yes. I noticed that second one yields no matches for 0.9.5, you need third one.16:15
hacim: 0.9.6 is the fifth(!) one.16:16
hacim: Yes, it was fixed 4 times.16:16
hacim Ilari: when you said abotu 0.9.3: 'the first commit doesn't have match' you are taking the commit ids in that history and then doing a git log | grep <commit id> in trunk to see if you find a match?16:17
gitte left16:17
abbe joined16:18
neoeinstein_ joined16:18
niki joined16:18
dermoth left16:18
Ilari hacim: The way I'm looking it up is: "git log --pretty=format:%H\ %T | grep `git rev-parse 95b5f3b632fbf492b41e8c353553a17582:tags/backupninja-0.9.3`". I got that 95b5f3b632fbf492b41e8c353553a17582 from git log.16:19
dermoth joined16:19
Ilari hacim: That yields: cf0e2ac5d5efba9bbc2efc79901467fd94cf3f15 b5b5b296c3e266570a842d732ae7ace3f1c5002916:19
ProperNoun left16:19
jnareb joined16:20
jnareb left16:21
solar_ant left16:21
stmg joined16:21
greyface joined16:21
mw joined16:22
qrush left16:22
Ilari hacim: Then its something like 'git tag backupninja-0.9.3 `echo Backupninja 0.9.3 | git commit-tree 58fe867c71ac295ed1b15f8e306099bfa0e37d2c -p cf0e2ac5d5efba9bbc2efc79901467fd94cf3f15`'.16:22
hacim Ilari: hmm, 'git rev-parse 95b5f3b632fbf492b41e8c353553a17582:tags/backupninja-0.9.3' yields b5b5b296c3e266570a842d732ae7ace3f1c50029 here and then git log --pretty=format:%H\ %T | grep b5b5b296c3e266570a842d732ae7ace3f1c50029 doesn't output anything16:22
gyukaku joined16:22
Ilari hacim: What repo are you running that log command?16:22
hacim Ilari: in my un-filtered backup16:23
Zenopus_ joined16:23
Ilari hacim: Run it in filtered repo.16:23
hacim ah16:23
that works16:23
Ilari hacim: Now make the commit and tag it.16:24
dermoth left16:24
dermoth joined16:25
gyukaku Can I embed revision id like what cvs does with $Id: $ ?16:25
jzellman left16:25
bcardarella left16:25
rudi_s gyukaku: You can but you shouldn't.16:25
Ilari gyukaku: And it isn't commit ID. Its blob ID.16:26
gyukaku uh16:26
Ilari gyukaku: That is, it identifies file contents, not the commit it is from.16:26
gyukaku hmm16:26
hacim Ilari: i'm catching up... doing this on 0.9.4 now16:26
feanil joined16:27
eilartt joined16:27
rudi_s gyukaku: http://git.or.cz/gitwiki/GitFaq#head-4a0afe71a2bb7734777a8b0b345e0308aefdbd4016:27
Ilari hacim: I get 787e4...16:27
hacim Ilari: got that too16:27
jzellman joined16:28
woei joined16:28
Ilari gyukaku: The right way to do it is rely on VCS services while its in VCS, and add the revision info to files on export. git archive supports various keywords (like for revision ID).16:29
rudi_s left16:29
hacim getting a little confused here16:29
Ilari hacim: With 0.9.5?16:29
hacim what is the first id that should be passed to git commit-tree?16:29
Ilari: no, still trying to get the tag right for 0.9.4, i have the 787e416:30
Ilari hacim: The one from saved tags file.16:30
hacim ah, right!16:30
Ilari hacim: 71d02...16:30
hacim: With 0.9.5, note it was fixed _twice_16:30
hacim so: git tag backupninja-0.9.4 `echo Backupninja 0.9.4 | git commit-tree 71d0292668701652ab7ea489721d320b583eb4b5 -p 787e4aadd2aa9786c95d897d781ebd67d7dd5875`16:31
fujin_ joined16:31
neoeinstein_ left16:31
gyukaku Ilari: thanks. I will read about git archive16:31
Ilari hacim: Based on quick look, seems sane. And executes without errors.16:31
gyukaku: Also see man gitattributes (export-subst) and man git-log16:32
Gitbot gyukaku: the gitattributes manpage can be found at http://git.or.cz/man/gitattributes16:32
hacim ok, so because 0.9.5 was done twice, what does that mean I should do with that? it looks like I need the third commit16:32
Zenopus left16:32
benn_d left16:32
Zenopus_Zenopus16:32
Ilari hacim: Yes.16:32
tvakah_ joined16:33
Ilari hacim: (and 0.9.6 is even worse. It was fixed _four_ _times_)16:33
neoeinstein left16:34
tvakah left16:34
orbii left16:34
Ilari gyukaku: man git-log because that format string uses the same syntax as --pretty=format: of git log16:34
solar_ant joined16:34
Gitbot gyukaku: the git-log manpage can be found at http://git.or.cz/man/git-log16:34
hacim Ilari: git tag backupninja-0.9.5 `echo Backupninja 0.9.5 | git commit-tree d3897513b979dd90dd84f81d15f48a6ee392f658 -p cb2de66fc83c10fce3b8d6f1d5e439c9d9890f4c`16:35
Ilari: can you check my "math" on that? :)16:35
poseidon joined16:36
Ilari hacim: The IDs seem correct.16:36
eilartt left16:38
hacim hm, i'm not finding it for 0.9.616:38
Ilari hacim: I get ddb9dff1fbb36e658e80b7d065058bb6dcb3424c -> a325d02a4efadd60215a7be57fdfc65dc6a093aa -> d404d8b754758dd3ac27c0be280f3ef9187ffce4.16:39
hacim Ilari: ah, i didn't do ddb916:40
Ilari hacim: And the proper tree ID is ebad12f2c58a4f221509f111d190d905946e62e316:40
arohner left16:40
hax0r1337 joined16:40
hacim git tag backupninja-0.9.6 `echo Backupninja 0.9.6 | git commit-tree ebad12f2c58a4f221509f111d190d905946e62e3 -p d404d8b754758dd3ac27c0be280f3ef9187ffce416:40
phew16:41
Ilari hacim: Seems reasonable.16:41
ashleyw joined16:42
sikanda left16:42
neoeinstein joined16:43
bcardarella_ left16:43
botanicus joined16:43
ashleyw left16:44
bobmcw left16:44
benn_d joined16:44
Casan left16:44
eletuchy joined16:44
hacim Ilari: ok, now that I have this, i guess i'll have to do a git push --force to get it published16:45
Ilari hacim: Also explicitly list the tags in order to get those pushed.16:46
fujin left16:46
Ilari hacim: So something like 'git push origin +master refs/tags/*:refs/tags/*'.16:47
bcardarella joined16:47
hacim Ilari: ah I just did 'git push --force --tags'16:47
Ilari hacim: There is also debian branch there.16:47
hacim Ilari: looks like I need to do the same thing for that branch16:48
as there are tags and a trunk/16:48
neoeinstein left16:48
raydeo joined16:49
Ilari hacim: Yeah. Apparently. Hopefully there aren't lots of fixups there.16:49
saurabh1403 joined16:49
peeja left16:50
hacim Ilari: I tried to re-write the trunk to debian: git filter-branch --subdirectory-filter trunk debian and it says, "Namespace refs/original/ not empty"16:50
killerchicken_ joined16:51
Ilari hacim: Delete that backup ref.16:51
hacim ok, i can just rm it16:51
Ilari hacim: Not proper way but should work.16:51
fujin_ left16:52
neoeinstein joined16:53
Ilari hacim: Or this version I have can be forced with -f.16:53
hacim Ilari: i just tried the first tag, and there was only one commit, but it didn't have a matching tree16:54
Ilari hacim: Only 0.9.6-4 of those has it.16:54
hacim Ilari: ok, i tagged that one... what do you think I should do about the others? just loose them?16:57
Ilari hacim: Maybe use backupninja-0.9.5 as base for 0.9.5-1... Something like "git tag backupninja-0.9.5-1 `echo Backupninja 0.9.5-1 | git commit-tree 813e9933ef7698dc5ac489dc26a8e3b6388d1563 -p backupninja-0.9.5`"16:58
neoeinstein left16:58
Ilari hacim: And then 0.9.5-1 as base of 0.9.5-2, etc...16:59
hacim yeah, but that would miss the bits that were unique in the debian branch16:59
jzellman left16:59
solar_ant_ joined16:59
killerchicken left17:00
solar_ant left17:00
bentob0x left17:00
ashleyw joined17:00
hacim Ilari: i have the svn repo with all those tags actually17:01
could I use that to construct it?17:02
bcardarella left17:02
Ilari hacim: master and debian diverged only in 2009(!) accoding to gitk.17:03
hacim Ilari: probably when I did the git-svn17:05
d0k_ joined17:05
Ilari hacim: Those tags all seem to appear in single revision.17:05
hacim Ilari: yeah, i might have done some rewriting or something to create that branch :P17:06
Ilari hacim: First it nukes all tags and then adds those tags.17:06
sitaram left17:07
hacim Ilari: ok, well i have the svn pieces for the debian/tags directory, maybe that can be used in an interesting way?17:08
Ilari hacim: You would need to have the history for that to get anything interesting out of it.17:08
hacim ah and svn history would be contained on the remote17:09
Ilari hacim: What I cloned doesn't appear to contain any interesting history relating to those tags.17:11
hacim yeah17:12
solar_ant_ left17:12
solar_ant joined17:12
d0k left17:12
hacim Ilari: could I do something like git filter-branch --subdirectory-filter tags/0.9.5-1 debian ; git tag debian/0.9.5 and then re-do that for each tag from a fresh unfiltered repo?17:13
a bit of a pain, but it would at least get each tag's contents to be associated with the files17:14
petercoulton joined17:14
Ilari hacim: That would be even worse than chaining those tags.17:15
hacim: Since with that filter-branch, it would be just a single commit.17:15
gyukaku Ilari: it worked. thanks. I set export-sust in the gitattributes, then git-archive with commit id17:17
export-subst17:17
hacim Ilari: hrm. i could also just tag the entire repository setup as it is now, with a trunk/ and a tags/ dir, so that those older tags could be available if needed, and then move on from there17:17
ashleyw_ joined17:18
Ilari hacim: What I would do is to build 0.9.5-1 on 0.9.5, then 0.9.5-2 on 0.9.5-1, etc...17:18
gyukaku left17:18
hacim Ilari: but doesn't that loose the changes that would have been different in 0.9.5-1 from 0.9.5?17:19
bryanl left17:19
hacim (the one good thing is that the differences are always contained in the subdirectory called debian in their respective tag directories)17:19
masak joined17:20
Ilari hacim: Ah, there's debian branch imported as well...17:21
sitaram joined17:21
Ilari hacim: And it has commits like "[svn-buildpackage] Tagging backupninja (0.9.6-4)"17:22
sikanda joined17:23
Ilari hacim: So the repo indeed _has_ interesting history for those tags...17:23
hacim Ilari: right, hm should I just take those commit ids and try to get their tree ids?17:23
mnick joined17:24
Ilari hacim: But those don't have commit IDs unless you extract those branches as well...17:25
nis left17:25
hacim Ilari: extract those branches... i'm not sure what branches you are referring to here17:27
stmg left17:28
stmg joined17:29
AkumaStreak joined17:30
ashleyw left17:31
Chaser_ joined17:33
Ilari hacim: branches/debian17:34
scientes left17:35
sikanda_ joined17:35
jackdempsey joined17:38
sitaram left17:39
jackdempsey left17:39
lightcap joined17:40
lightcap left17:42
gaveen joined17:44
jzellman joined17:46
radarek joined17:47
bobesponja joined17:47
lightcap joined17:49
ashleyw_ left17:52
doener left17:52
doener joined17:52
ashleyw joined17:53
Kbyte left17:55
neoeinstein joined17:56
thumper joined17:56
straszheim % git submodule update --init17:57
Submodule 'spec' (git://sodium.resophonic.com/spec) registered for path 'spec'17:57
shift: 634: can't shift that many17:57
update --init looks broke17:57
jceb81 joined17:57
straszheim submodule init ; submodule update <- works17:57
jceb left18:00
sikanda left18:01
Blah12309 joined18:01
Blah12309 ×amsg×18:01
dwave joined18:02
Blah12309 ×amsg×18:03
ehird what18:03
solar_ant left18:03
Blah12309 ×amsg×18:03
dwave left18:03
Blah12309 ×amsg×18:03
×amsg×18:03
×amsg×18:04
ehird Blah12309: is this one of those crash bug things?18:04
fairly obnoxious.18:04
bcardarella joined18:04
Blah12309 lol18:04
P18:04
O.o18:04
Ilari ehird: IIRC, those crash bugs where CTCPs, not regular messages to channle.18:04
*channel18:04
ehird Ilari: there may be some other kind, I suppose.18:04
Blah12309 ×amsg×18:06
Louie` joined18:06
ehird Blah12309: go away18:07
davidad joined18:07
jzellman left18:10
Chaser_ left18:11
nosatalian joined18:14
tlyng joined18:14
Mr_Grieves| Quick question -- I want to pull an old version of a repo on git hub, but I can't seem to figure it out :-/ it should be fairly simple, right?18:14
feanil left18:15
Blah12309 ×amsg×18:15
Mr_Grieves| I've tried checking out an older branch (git checkout -b <hash>), but stuff newer than <hash> was in my copy afterwards?18:16
Ilari Mr_Grieves|: That's syntax to create branch named <hash> from current version.18:16
Mr_Grieves|: You probably want 'git checkout -b branchname <hash>'?18:17
sfwc joined18:17
Mr_Grieves| Aha :) Thanks18:17
Blah12309 v18:19
krawek joined18:20
Mr_Grieves| Awww, Blah12309 thinks he's clever...how cute.18:20
Ilari Mr_Grieves|: BTW, <hash> is IIRC valid name for a branch. :-)18:20
Mr_Grieves| Ilari -- It is :) The second syntax worked perfectly.18:20
I was close, at least ;-)18:20
gaveen_ joined18:21
Ilari Mr_Grieves|: Yup, verified with git-check-ref-format. There are total of 88 ASCII characters that may appear in git branch names. Plus loads more from Unicode...18:22
Blah12309 everyone!18:22
Blah12309 left18:23
Grum another fool who found out /amsg :(18:24
khmarbaise left18:24
Ilari What's /amsg? How it is different from /msg?18:24
feanil joined18:26
neoeinstein left18:28
Ilari Ah, apparently send to all channels you are on command...18:29
voker57_ sends message to all channels18:29
gilimanjaro joined18:30
Mr_Grieves| No ops here to kick/ban?18:31
Ilari Mr_Grieves|: They got disconnected already.18:31
bcardarella_ joined18:32
Mr_Grieves| is a little slow... :P18:32
bobmcw joined18:32
fynn joined18:34
eletuchy_ joined18:35
eletuchy left18:35
gaveen left18:36
argonel i just did a git reset <commit>, which was clearly the wrong thing to do.. how can i undo this?18:38
bcardarella left18:39
sikanda_ left18:40
neoeinstein joined18:40
remitaylor joined18:41
gilimanjaro left18:41
thumper left18:42
remitaylor does anyone know if there are hooks that get called even when everything is up-to-date? ie. can i run a script when a pull/push is done, even if there's nothing to pull/push because everything is up-to-date?18:42
Modius_ joined18:42
drizzd pre-update or something like that? not sure18:43
jackdempsey joined18:43
wereHamster argonel: git-reset just unstages files from the index. Simply git-add the files18:43
drizzd no, that doesn't exist18:43
how about pre-receive?18:43
wereHamster hm, git-reset HEAD@{1} would probably solve as well18:44
remitaylor drizzd: trying those18:44
jamescarr_ left18:45
sikanda joined18:46
remitaylor nope. might not exist. kindof a bummer ... you'd think there'd be a hook that catches pretty much all connection attempts.18:46
argonel wereHamster: it undid my most recent commit18:47
remitaylor drizzd: i'll make sure i'm implementing all of the available hooks ... will post back if one works18:47
wereHamster argonel: did you use --hard?18:47
argonel wereHamster: nope18:48
Modius__ joined18:48
wereHamster argonel: look at the reflog (git log -g) and reset back to the commit you were before18:48
argonel wereHamster: thanks, head@{1} and that commit were the same :)18:50
bcardarella joined18:53
saurabh1403 left18:53
Modius_ left18:54
Paf joined18:55
ia joined18:56
jamescarr_ joined18:59
Modius left18:59
ashleyw left19:02
j416 left19:02
Ilari remitaylor: Are there even any hooks that get run on fetch-type op?19:02
Modius__ Git as I am using it seems to diff by comparing lines - is there a way to change that (specifically, to consider indentation insignificant if a large expression is indented) or is that kind of structurally carved in stone?19:02
bcardarella_ left19:03
wsc joined19:05
drizzd Modius__: git diff -w19:05
bcardarella left19:05
remitaylor Ilari: not that i can find, nope19:05
mw left19:06
Modius__Modius19:06
Modius drizzd: Thanks - is there a way to get Git GUI to use that for its diffing?19:06
bcardarella joined19:07
gaveen_gaveen19:07
drizzd Modius: don't think so19:08
poseidon left19:09
drizzd would be pretty counter-intuitive to hide those changes, since the main purpose for git gui is adding/removing changes.19:09
Modius drizzd: Guess I'm fundamentally wondering if Git, internally, works in terms of changes to lines, i.e. with lines, and if that is itself adjustable.19:10
nosatalian left19:10
Ilari Modius: It doesn't. It works with whole-tree snapshots.19:11
Modius Ilari: If I have a file, with a line in it, and I modify that line's indentation, will it store a new copy of the full line?19:11
thiago basically, each file you add and commit is kept in entirety19:11
yes19:11
but that's before compression19:12
Grahack left19:12
Ilari Modius: It essentially needs to store new version of the entiere file. It might be presented in terms of the other revision, but its still its own object.19:12
Modius Ilari: Understood.19:12
Ilari Modius: And when working on storage, all files are binary.19:13
Modius In my normal workflow, something that changes the indent of a whole function (common in lisp or certain functionalish code, more than in C) is highlighted as the whole function guts being removed and readded as something different.19:13
kalle_ left19:13
woei left19:13
Ilari Modius: You could even write your own diff program and have git call that.19:14
kalle_ joined19:14
Modius Ilari: At the repo level or just wrt my local workings?19:14
Ilari Modius: At object storage level. Even tag messages are 8-bit clean.19:15
schacon left19:15
Modius Ilari: Any keywords I can search on to see examples of anyone doing that?19:15
remitaylor left19:15
sfwc left19:16
Ilari Modius: Probably no. Really using the fact that tag messages are 8-bit clean is quite insane.19:16
Modius: For commit messages, it wants some character set, but if character set with single-byte characters and all characters valid exists...19:17
ceej joined19:22
jettero I'm looking for a way to list all files from all revisions...19:25
wereHamster jettero: git-rev-list + git-ls-files19:26
jettero ls-files can list files from other revisions?19:27
Ilari jettero: '(for i in `git rev-list --all` ; do git ls-files -r --full-tree ; done) | sort | uniq'? Untested.19:27
jettero Ilari: something is missing from that lsfiles .... $i before the ;?19:28
Ilari jettero: (for i in `git rev-list --all` ; do git ls-tree -r --full-tree $i ; done) | sort | uniq19:28
Leemp left19:29
saurabh1403 joined19:29
sikanda left19:29
Ilari jettero: Doesn't work very well...19:29
jettero: Add 'cut -f 2' to pipeline before the uniq.19:30
davidfetter left19:30
Ilari jettero: Actually, before sort.19:30
jettero ?19:31
bcardarella left19:31
dwave joined19:31
jettero k, first of all it looks like it would just list the files for the current HEAD, but for each revision....19:31
bla joined19:31
jettero oh, I see, nm19:31
git ls-tree --name-only seems to negate the need for a cut19:32
qrush joined19:35
robinr joined19:35
neoeinstein_ joined19:35
bryanl joined19:36
qrush__ joined19:37
neoeinstein_ left19:38
neoeinstein_ joined19:39
neoeinstein left19:40
neoeinstein_neoeinstein19:40
tedoc2000tedoc2000_afk19:40
Leemp joined19:44
mxey joined19:45
qrush_ left19:47
saurabh1403 left19:47
boto joined19:49
robinr left19:50
gabeodess left19:51
raydeo left19:53
precision joined19:54
boto left19:54
qrush left19:56
gauge joined19:57
sikanda_ joined19:57
gauge killer19:57
hulo joined19:58
hulo hello. i understand the concept of .gitigore, but i was wondering if there was a reverse, like gitallow?19:59
if there isn't, is it possible to get alisting of untracked files in a repo, and dump that to .gitignore?19:59
Ilari hulo: 'git ls-files --untracked' or something like that?20:00
hulo: And .gitignore supports negative rules (prefix with '!'). Plus there's git add -f.20:00
neoeinstein `git clean -dn` would give you a listing of all untracked files not excluded by a .gitignore rule20:04
I think you can actually leave off the 'd' too.20:04
faithfulgeek joined20:04
qrush__ left20:06
ThaDon left20:06
pencilo joined20:10
Paf left20:11
Grahack joined20:11
faithfulgeek left20:13
kalle_ left20:13
bcardarella joined20:14
kraymer left20:15
kalle_ joined20:18
bcardarella left20:18
straszheim ls20:20
mfilipe joined20:23
bcardarella joined20:23
kraymer joined20:24
scroogey joined20:25
ceej left20:25
Dashkal joined20:26
Weaselweb left20:27
kate21de joined20:28
ceej joined20:28
gaveen left20:29
yann joined20:29
gilimanjaro joined20:29
sikanda_ left20:30
coldwaterlover joined20:30
scroogey hello20:30
i had a question about git diff20:30
or more gitx or gitk20:30
sobersabre joined20:30
sobersabre hi. I'm on debian, and I've read the git-svn man page. it referred to something named "git-svnimport"20:31
Ilari scroogey: What question?20:31
scroogey you can use git svn clone to import svn repos20:31
Ilari: well, i have made changes20:31
Ilari sobersabre: Its deprecated.20:31
scroogey but it always says the whole changed20:31
instead of the lines20:31
sobersabre Ilari: ok.20:31
Ilari sobersabre: Sounds like CRLF problems or reidentation.20:32
sobersabre so IIUC: git svn clone URL would get all the history of an svn repo into a given git repo.20:32
Ilari: I think you're mistyping initial nicks all the time...20:32
Ilari sobersabre: Note that you need to specify the layout (there's dedicated switch for default layout).20:32
scroogey yeah like git svn clone -s http://alivepdf.googlecode.com/svn/trunk/ alivepdf-read-only20:33
well with out the trunk then20:33
purplepenguins left20:33
Ilari scroogey: Sounds like CRLF probs or reindentation.20:33
scroogey Ilari: aah. bummer.20:33
sobersabre scroogey: how are the svn's usernames mapped into authors/committers ?20:33
scroogey sobersabre: no idea :>20:33
sobersabre is there a way to prepare some kind of map ?20:33
arohner joined20:33
Ilari sobersabre: Well, two nicks active both beginning with Sierra.20:33
sobersabre: There's authors file.20:34
sobersabre Ilari: where ?20:34
Ilari sobersabre: At least git-svn has option to take one in.20:34
sobersabre Sierra Oscar vs. Sierra Charlie20:34
Ilari: thanks, I'll RTFM the git-svn man to the end then.20:34
thanks all20:35
Out.20:35
;-]20:35
sobersabre left20:35
Ilari :-)20:35
scroogey time to find out how to make an archive of HEAD~120:36
bbl20:36
abbe left20:36
Ian00 joined20:36
Ilari scroogey: 'git archive HEAD~1'?20:37
scroogey of course!20:38
too dumb :+20:38
sikanda_ joined20:38
dwave left20:39
scroogey thanks Ilari20:39
bloody apple notebook20:39
Ilari: doy ou know a command to cleanup identation and CRLF20:41
when commiting?20:41
Ilari scroogey: There is CRLF cleanup mode that only cleans them on add. But git doesn't want to readd files that don't have modifications.20:42
scroogey: Few days ago I had problems with having some files that had CRLFs. Especially as Kate liked to strip them away.20:42
scroogey Maybe I am using the Mac and the other developer Windows? I think Linux/Mac is not using CRLF but only CR?20:43
because20:43
aisbaa left20:43
Ilari scroogey: On Windows, the default is to enable CRLF translation both ways...20:44
scroogey aah.20:44
oh well.20:44
i will see if i am having the issue when my own projects20:44
let me check in GitX for my rails project20:44
ned left20:45
AkumaStreak left20:45
AkumaStreak joined20:46
scroogey there it works :)20:46
good20:46
dwave joined20:48
firewing1 joined20:49
firewing1 I hope this is the right place to ask this... I'm wondering what your opinion/experience is with Github20:50
(I'm thinking of moving my local git repository for an open-source project there)20:50
seangrove joined20:50
scroogey works fine here20:50
coldwaterlover left20:53
neoeinstein personally, I like github and find it simple and user-friendly to setup and work with.20:54
firewing1 Alright, thanks for the info :)20:54
firewing1 hits "Sign up"20:55
scroogey :)20:55
yes, it's nice20:55
only govt doesn't allow me to use it :(20:55
Ilari scroogey: Some port blocking or policies?20:56
gitte joined20:56
scroogey security issues yes20:56
not allowed to store IP stuff on non-govt systems20:57
especially not outside the country20:57
ashleyw joined20:57
scroogey probably something to do that the govt got hacked from middle east :+20:57
by people20:58
Ilari scroogey: And probably no way to get internal git server? :-/20:58
scroogey we got internal one :)20:58
dodo_the_last joined20:58
krawek left20:58
Enselic joined20:59
scroogey it was opensource and free20:59
that liked that20:59
they20:59
yet to find a way to export to perforce20:59
dwave left20:59
Enselic Sometimes you only want to change the commit message of a commit a few commits back, is there a nice workflow for this other than git-rebase -i ?20:59
Ilari Enselic: Rebase -i is the easiest way probably.21:00
wereHamster filter-branch is probably overkill21:00
ned joined21:01
bcardarella left21:01
Enselic I'd just like to double-click on the message area in gitk and start to edit, and when I'm done git does the rebase silently for me21:02
wereHamster Enselic: that's what one of the git gsoc projects is about :)21:02
Enselic wereHamster: yeah I saw that one, I have high hopes for it21:02
bryanl_ joined21:03
yann left21:06
scroogey i like the git monster on the website :>21:06
fynn left21:08
fynn joined21:08
robinr joined21:09
robinr left21:09
robinr joined21:10
bryanl left21:10
radarek left21:10
Ilari Yeah, quite obiviously suffers from indeterminate growth from eating trees like candy. :->21:12
kalle_ left21:13
scroogey yep :>21:15
Grahack left21:15
sikanda_brianjlandau21:17
octagon joined21:18
kalle_ joined21:19
schaefer joined21:19
offby1 I have never understood that monster.21:20
"eats trees and makes logs" ?21:21
Fissure it's also a "blob"21:21
sobersabre joined21:22
sobersabre hi.21:22
schaefer hello... i'm very interested in the status of the git eclipse plugin. does anyone know what the plans are to make the latest code available from an update site?21:22
sobersabre I ran git svn clone <repourl> -Aauthors21:22
Ilari sobersabre: -s missing?21:23
sobersabre I expected to run upto HEAD revision, but after r1000 it stopped, and started "auto packing your repository"21:23
Ilari sobersabre: Yeah, it does that and then resumes.21:23
sobersabre what do you mean "resumes" ?21:24
It exitted.21:24
does it revive on itself ?!21:24
replaca left21:24
sobersabre and what is "-s" ?21:24
Ilari sobersabre: Use standard layout.21:24
vbabiy joined21:25
firewing1 Is it possible to selectively push only certain commits to a remote origin?21:25
schacon joined21:25
Ilari sobersabre: Standard SVN layout.21:25
firewing1 For example, I'd like to push only the last 5 commits to github21:25
Ilari firewing1: You need to rebase those commits to be first unpushed commits.21:25
wereHamster firewing1: certain branches, yes21:25
sobersabre I thought if my repo is based on trnk,branches,tags ... git would be smart enough to pickup that part...21:25
yann joined21:25
Ilari sobersabre: There's switch for that layout as its most common.21:25
firewing1 Ilari: Will I have to redo the 'git add' steps after I rebase?21:26
sobersabre ok...so, what do I do to continue the svn clone from 1000 upto the HEAD of svn repository ?21:26
run it again ?21:26
schaefer left21:26
Ilari sobersabre: If you did it without specifying layout, do it again, what it did is quite insane.21:27
sobersabre hmm.. you mean reinit the git repo, etc. ?21:27
Ilari sobersabre: 'git svn clone --stdlayout -Aauthors <URL>' or something.21:28
sobersabre ok... retrying...21:28
Ilari: thanks.21:28
solydzajs left21:29
schaefer joined21:29
Ilari sobersabre: I have done some imports long enough to trigger that repack in the middle. For those imports after repack finished, it continued importing.21:30
Enselic left21:30
sobersabre weird...21:30
I do as follows:21:30
mkdir -p workdir; cd workdir; git init; git svn clone <flags> https://hostname/svn/repos21:30
it writes:21:31
Initialized empty Git repository in /home/username/workdir/repos/.git/21:31
Ilari sobersabre: git svn clone does git init...21:31
sobersabre sh1te... ok.21:31
5th time!21:31
Ilari sobersabre: You can move it afterwards.21:31
sobersabre I want all the stuff to be in ~/workdir21:32
and I don't want any ~/workdir/repos to be created.21:32
shall I do:21:32
cd21:32
mkdir -p workdir; cd workdir; git init; git svn clone <flags> https://hostname/svn/repos workdir21:32
Ilari sobersabre: Well probably easiest to mv it after clone finishes.21:32
sobersabre sorry,21:32
I didn't need anything except the git svn clone and it's parameters.21:33
right ?21:33
Fissure right21:33
sobersabre ok... seems it does what I wanted.21:34
now, again, I don't understand the gc thing.21:34
Ilari sobersabre: git svn clone creates directory where it clones stuff. And IIRC it really wants to create it, otherwise it complains.21:34
sobersabre ok, now, what do I do if it ends the process after the r1000 ?21:34
I want everything upto HEAD, which is about 220 revisions further :)21:34
Ilari sobersabre: Pastebin the (end of) the output?21:34
sobersabre I will (when it ends). is there any special git-bin ?21:35
Ilari sobersabre: You can use any pastebin...21:35
sobersabre: /topic has URL of one, but there are others.21:36
sergiodj joined21:37
ehird left21:37
Tricon left21:37
ehird joined21:37
feanil left21:39
hax0r1337 left21:39
masak left21:40
ehird left21:41
sobersabre I'm watching it run... and I think something weird again happened.21:41
I think I saw git run over the same rev. numbers 2 times.21:41
wereHamster that's normal21:42
sobersabre as if it did some kind of loop.21:42
is it possible ?21:42
didi joined21:42
sobersabre I mean, in svn - it's all monotonic increment of revisions.21:42
Ilari sobersabre: It loops over various branches.21:42
sobersabre oh! now I saw it again.21:42
it went back to r400 something third time.21:43
very intriguing...21:43
Ilari sobersabre: That can happen in multi-branch repos.21:43
yann left21:43
brianjlandau left21:43
arohner left21:43
yann joined21:43
sobersabre it's more intriguing than watching a progress bar progress...21:44
:)21:44
oh. now it's autopacking on r811....21:44
didi Is someone making a git server with gitosis? I am trying and although I am able to clone the gitosis-admin, make changes and commit, I am unable to push new repositories as get this response: ERROR:gitosis.serve.main:Repository read access denied21:44
sobersabre it's different than the 1st two clones...21:44
how can this be ?21:44
offby1 left21:45
Ilari sobersabre: --stdlayout?21:45
stuffcorpse left21:46
Ilari didi: Did you authorize yourself to read or write them?21:46
didi: And you pushed your changes right?21:46
didi Ilari: I followed this tutorial: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way21:47
sobersabre Ilari: yes. http://gist.github.com/10176621:47
didi Ilari: And added the supposed lines to gitosis.conf21:48
Ilari sobersabre: Messages would indicate it is switching branches.21:48
didi: Then did add, commit and push?21:48
didi Ilari: Yes.21:48
sobersabre Ilari: it hasn't completed the cloning process. so shall I do as it advised: run git gc ?21:49
Ilari sobersabre: It ran that.21:49
sobersabre so... do I get this straight: git svn clone didn't manage to complete.21:49
?21:50
Enselic joined21:50
didi Ilari: Is there a known bug or something?21:50
Ilari didi: Can you pastebin gitosis.conf and the URL you are trying to clone?21:50
didi Ilari: Sure.21:50
Ilari sobersabre: It exited immediately after that?21:50
sobersabre yes.21:50
Enselic Sometimes when I am doing a git-rebase and then git-rebase --continue, I get this error message "fatal: unable to create '.git/index.lock': File exists". It seems to happen randomly. I don' have gitk running. Anyone know why this is?21:51
Ilari sobersabre: Maybe try running 'git svn fetch --fetch-all' in that repo and see if it continues?21:51
Enselic I don't know what happens if I git-rebase --continue now21:51
Ilari Enselic: That would indicate git command having crashed in middle of updating index or some git command updating the index.21:52
sobersabre with -A../authors --stdlayout --fetch-all URL ?21:52
ceej left21:52
Enselic Ilari: hmm could it perhaps be that I have EDITOR=gedit?21:52
didi Here is my gitosis.conf: http://pastebin.com/d5b743a6a21:52
Ilari sobersabre: Just 'git svn fetch --fetch-all'.21:52
wereHamster sobersabre: cd workdir/; git svn fetch --fetch-all21:52
Ilari didi: And what URL you are trying to clone?21:53
didi Ilari: Just a sec.21:53
sobersabre wereHamster: thanks, it continues from the last rev. it stopped furing git svn clone...21:53
hoping for the best now.21:53
scroogey :)21:54
sobersabre OK! it passed rev 1000 :)21:54
Ilari sobersabre: Still quite concerning that it stopped halfway without error messages...21:54
sobersabre Ilari: it wrote something weird: Following parent with do_switch21:55
whatever that's supposed to mean.21:55
Ilari sobersabre: do_switch is some SVN feature to speed up branch switching...21:55
sobersabre I do have a comment though21:56
didi Ilari: Here are the commands: http://pastebin.com/d4b0e735121:56
sobersabre while running the initial command, I got a prompt, with no comment. it went like21:56
Password:21:57
I had no idea what password it was supposed to get.21:57
eventually it was supposed to be the ssl cert password.21:57
It's maybe some perl lib that does svn authentication, I don't know, but this is a very ... incomplete prompt.21:57
firewing1 Hm, another question - I'm in the process of rewriting one of my programs from Python to C++... Am I better off creating branches/ and trunk/ directories, or using git's branch features?21:58
offby1 joined21:58
moh left21:58
sobersabre firewing1: what a terrible thing to hear.... (I mean from python to C++)21:58
firewing1 hehe... I need speed though :(21:58
gitte left21:59
offby1 hope you only wrote a little bit of the tight loop in C++ ... 95% of your program's time is spent in 5% of the code, so the cliché goes21:59
benn_d_ joined22:00
Ilari firewing1: Git's branching. branches/ and trunk/ is SVN braindamage.22:00
benn_d left22:00
didi Ilari: Did you see something wrong?22:00
firewing1 Ilari, OK thanks - I'll lookup a guide on that22:00
offby1: It's a backup program though, so just overall Python is unsuitable for what I'd like to do22:00
ie, tight SSH and SSL integration, fast file copies (with the rsync delta algorithm), etc22:01
offby1 I wouldn't expect a backup program to use lots of CPU. Is it spending all its time figuring out which files to copy?22:01
Ilari didi: The git account on server should have raw copy of gitosis.conf. See if it matches what it should be (thats what it uses for access control).22:01
sobersabre is listening to Shpongle - "Nothing Lasts, but Nothing's Lost"22:01
sobersabre while git is looping back to rev. 350...22:02
hell.22:02
firewing1 offby1: I'm not sure, actually, but Python is just terrible at it... for example when I did benchmarks, unpacking a tar archive takes 1m+ in Python but ~20s natively22:02
Ilari sobersabre: At least it did one branch...22:02
sobersabre Ilari: it did more than this, but I'm sitting here watching it with awe22:02
:)22:02
offby1 firewing1: I can't argue with the numbers :) But I wonder if the problem is due to Python being slow, or if instead it's something else22:03
ToxicFrog That seems really weird, since in an untar disk IO should dominate over everything else.22:03
Ilari firewing1: Git doesn't have tools to deal with stuff like branches/ and trunk/ (outside git-svn importing), exactly _because_ its braindamaged.22:04
didi Ilari: Hum... I see a .gitosis.conf inside /srv/git (which is the user git's home). I did a "sudo cat .gitosis.conf" and the output was the old gitosis.conf, not the one I commited.22:04
firewing1 I found it a bit odd too... but a lot of time with Python is spend dealing with the files, not copying the files themselves22:04
sobersabre Ilari: please correct me: git's concept of "branch" is very different than svn's, so it recreates all the possible histories of a given branch, and this is why it repeats some stuff.. right ?22:04
firewing1 I wrote a simple file copy in C and it was more or less the same in Python IIRC22:04
scroogey left22:04
firewing1 but when you deal with 1000 small files, Python is so slow... It's just terrible22:05
Ilari didi: Assume git user and 'git show HEAD:gitoisis.conf' in gitosis-admin repo. Does that match what was pushed?22:05
sobersabre firewing1: it's very weird that untarring takes so much time in your python script than in C, since... they're supposed to use the same.22:05
firewing1: what file access routines are you using ?22:05
firewing1 sobersabre: Nope, Python has it's own "tarfile" module22:06
Ilari sobersabre: More like its faster to follow one branch and then switch to others than grab whole revision at once and then move to next.22:06
jayallen-afk left22:06
ceej joined22:06
sobersabre Ilari: If I understood hash idea - the branches should be linked to the subtrees of given node in the revisions graph.22:06
ToxicFrog firewing1: as far as branch management goes, the git tutorial (http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html) has a decent intro, although it does kind of assume no preconceptions about what a branch is (ie, it doesn't explain them, it just shows how you behave and waits for you to infer)22:06
kraymer left22:07
sobersabre so, I'm confused: revisions are also unique...22:07
oh... I'm not.22:07
Ilari sobersabre: Well that "looping-back" behaviour is essentially because its faster to do it that way.22:08
sobersabre if I am committing something under git, another son of my dir's parent doesn't "feel" it.22:08
right ?22:08
ToxicFrog The git user manual (http://www.kernel.org/pub/software/scm/git/docs/user-manual.html) has some more in depth stuff, and Git for Computer Scientists (http://eagain.net/articles/git-for-computer-scientists/) I found very helpful in grokking both how git stores stuff internally, and what git branches are.22:08
Ilari sobersabre: Branches are independent. Git doesn't have hierarchial branches.22:08
firewing1 ToxicFrog: So I assume that in this case, I would branch my currently empty repo, commit the master as the Python version and work on the 'cplusplus' branch independently22:08
Ilari Also "Git from the Bottom Up".22:08
firewing1 When I'm done, I just delete master and make 'cplusplus' master?22:08
ToxicFrog firewing1: yeah, or perhaps make the python one "python" and the c++ one 'master'22:09
didi Ilari: The "git show" show me the gitosis.conf that I pushed, but the /srv/git/.gitosis.conf has the first version of it. The .gitosis.conf also links to a inner .gitosis.conf (repositories/gitosis-admin.git/gitosis.conf) which also has the older version. I am confused...22:10
offby1 left22:11
offby1` joined22:11
Ilari didi: It uses hook to update the gitosis.conf. Probably that hook didn't fire for some reason. Is that partition mounted 'noexec' (it doesn't work then)?22:11
offby1`offby122:11
didi Ilari: Hum. I don't know. How can I know it? It is on the same partition of my whole system.22:12
sobersabre run: mount22:12
tony_ in a commit, can i commit *some* files, and reset the others?22:12
sobersabre didi: is your all system on 1 partition.. are you sure ?22:13
wereHamster tony_: selectively git-add the files you want to commit22:13
bobesponja left22:13
kalle_ left22:13
Ilari didi: Maybe assume git user, cd to gitosis-admin and run 'hooks/post-update' (or whatever it used).22:13
kalle_ joined22:13
bobesponja joined22:13
sobersabre Ilari: where does git's hash come from ?22:13
didi sobersabre: I have some partitions, but /srv/git is in the same of, say, /usr, /dev and /tmp22:14
sobersabre I mean it's a nice rate of quite a "carefully selected random hashes" rate.22:14
didi Ilari: Doing this now.22:14
Ilari sobersabre: Hashing object contents together with some headers.22:14
tony_ wereHamster: thanks22:14
bcardarella joined22:14
sobersabre Ilari: I mean the rate of their generation is quite high.22:14
I doubt my machine has an RNG hardware.22:14
travisjeffery joined22:15
sobersabre COMPLETED!22:15
:)22:15
Ilari sobersabre: They aren't random but fully deterministic.22:15
sobersabre: Well, there is timestamps involved...22:15
Enselic left22:15
sobersabre Ilari: I think the term "carefully selected randoms" is a good one.22:15
(it's not mine, my friend's)22:16
Ilari sobersabre: If two hashes are different, whatever they point to differs in some way.22:16
moh joined22:17
wereHamster .. with a probability of [nearly one, but not quite]22:17
ToxicFrog didi: make sure that hooks/post-update is marked executable in the first place, too; ISTR hearing that in some cases the installer will not mark it executable as it should.22:17
didi Ilari: Ok. It now works.22:17
ToxicFrog: Yes, that was it.22:17
ToxicFrog: Ilari remembered me of that. A chmod did it.22:18
Ilari: Thank you.22:18
My own git server. Nice! :-D22:19
sobersabre Ilari: it did import everything, but authors is messed up :(22:20
I mean, it didn't work.22:20
I have an authors file with 3 lines of the format:22:20
username = John Doe [email@hidden.address]22:20
I added it as -A../authors argument.22:21
Ian00 how can i grep file, and every version of it in my repo and its history22:21
Ilari sobersabre: I don't know very much about git-svn... Sorry. :-/22:22
Sho_ left22:23
jceb81 left22:24
HG` left22:27
Ian00 how can i git-grep through history?22:29
Leemp left22:29
wereHamster Ian00: git-rev-list | git-grep22:30
hdl left22:33
Ian00 wereHamster, git-rev-list needs options. Also, it looks like git log -Sstring will find what i need, but i'd like it to search all branches, not just he history from the one i'm on. git-rev-list man page might help, but if you know, please speak up22:33
dodo_the_last left22:35
wereHamster Ian00: for rev in `git rev-list --all`; do git grep whatever $rev; done22:35
neoeinstein left22:35
patrikf joined22:36
Ian00 wereHamster, nice thank you. looks like you can just pipe it to git grep also.22:37
Enselic joined22:39
Enselic I have made a git-rebase and lost a commit. I have the SHA1 of the commit. git-merge 54A1.. causes massive conflicts. Any trick so I can find the commit that was HEAD before my rebase so that I can redo it?22:40
wereHamster Enselic: reflog (git log -g)22:41
vmiklos left22:42
Enselic wereHamster: interesting, will look closer at that22:42
Shadow_Master joined22:43
peeja joined22:44
gilimanjaro left22:44
priidu left22:45
nick_e joined22:45
matthewmcculloug joined22:45
bcardarella left22:47
parasti left22:47
benn_d_ left22:53
benn_d joined22:53
sobersabre thanks Ilari22:53
and wereHamster22:53
sobersabre left22:53
DavidKlein left22:56
vbabiy left22:59
noz joined22:59
redacted joined23:00
patrikf left23:00
d0k_ left23:01
vbabiy joined23:02
noz Using git svn (dcommit), I got the message "Unable to determine upstream SVN information from xxxxx history." Where should I look for the problem? In .git/svn?23:03
The repo was created with a git clone, then git svn init23:04
Enselic wereHamster: thanks, that did it23:05
Enselic left23:05
OO11sejo23:07
robinr left23:08
kate21de left23:08
techleopard left23:11
jackdempsey left23:12
kalle_ left23:13
octagon left23:17
kalle_ joined23:19
vbabiy left23:19
drizzd noz: just guessing here, but how is git supposed to know how your git history relates to the svn history?23:21
noz The original git repo was created from the svn repo, and after cloning, I did a 'git svn init' - I thought that was suppoed to do it?23:22
vmiklos joined23:23
drizzd probably not23:25
you could have done that with any git repo, totally unrelated to the particular svn repo23:26
did you do a git svn fetch?23:26
noz Yes - the full sequence was: git clone, git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*', git fetch origin, git svn init ..., git svn rebase23:28
stuffcorpse joined23:29
AAA_awright left23:29
offby1offby-laptop23:29
offby1 joined23:30
drizzd where did you get that? I don't think refs/remotes are advertised23:30
offby-laptop left23:30
lea_w joined23:30
lea_w left23:30
robinr joined23:30
drizzd so the ... is where you called git svn fetch?23:30
iamwilhelm left23:30
Octalot left23:31
noz Sorry - no. No git svn fetch was done. A git fetch origin, but not a git svn fetch23:31
firewing1 left23:31
didi left23:32
qhoxie left23:32
noz The ... were just options to git svn init23:33
drizzd well, like I said. This probably doesn't do what you think it does.23:33
noz Thanks for your help.23:33
drizzd I'm not familiar with git-svn myself, but I'm sure there are tutorials out there23:34
noz That's the trouble trying to use someone else's recipe when you don't fully understand the concepts...23:34
justatheory joined23:34
drizzd I used "git svn clone" once, and it seemd to do the trick.23:35
sobersabre joined23:44
AAA_awright joined23:44
sobersabre hi. I have run git svn fetch --fetch-all,23:44
redacted left23:44
sobersabre and got all the revs of svn repository.23:44
my problem is that authors file didn't "catch", i.e. I don't have authors as I stated in the authors file.23:45
Is there a way to go through all the revisions and substitude old author data with another ?23:45
I don't mind rebuilding the whole history during all this.23:46
ashleyw_ joined23:46
bcardarella joined23:47
Modius left23:49
gautam_c joined23:49
kuadrosx left23:51
offby1` joined23:52
offby1 left23:53
offby1`offby123:53
romao left23:56
AAA_awright left23:58
AAA_awright joined23:58

Logs Search ←Prev date Next date→ Channels Documentation