IRCloggy #git 2012-03-15

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.

2012-03-15

wroathe joined00:00
mister_m left00:00
cespare Xano: well, i assumed your central server was a remote called "origin", as that is typically the case.00:00
JulieHernandez joined00:00
cespare I don't know how you cloned the repo in the first place.00:00
Xano cespare: that might be the case, but git reset doesn't accept that as an argument00:00
cespare: It only accepts a commit hash00:00
cespare Xano: false00:00
mritz left00:00
wxr can thee help me?00:00
cespare Xano: git remote00:01
Xano: git branch -r00:01
sattu94 joined00:01
cespare Xano: you can give git reset any ref, including say a sha, or HEAD~12, or origin/master, whatever00:01
wxr Can thee tell if thee can help me?00:02
I'm really confused00:02
cespare wxr: i don't know what you're typing. Clearly there's a big disconnect here.00:02
if 'git' gives you command not found.00:02
Xano cespare: So that's what the docs mean with "path"?00:02
cespare: Because git gave me an error saying origin was not in the path (or something like that)00:02
cespare Xano: what does 'git remote' say?00:03
Xano cespare: origin00:03
ben225 joined00:03
cespare and what does git branch -r say?00:03
Xano cespare: origin/$branchname00:04
wxr http://i.imgur.com/R7iiQ.png00:04
^ cespare00:04
satyanash left00:04
cespare Xano: ok, so you'll notice in my original message I said "assuming your remote is origin, you're on master..."00:04
you're not on master00:04
so you would do "git reset --hard origin/$branchname"00:04
Xano ah right00:04
cespare whatever that is00:04
Xano geti it00:04
wxr cespare: ideeas?00:05
satyanash joined00:05
cespare wxr: ok so maybe some command-line familiarity would be good00:05
you typed E:\00:05
Xano cespare: That works indeed. I guess I tried origin/master and just origin, both of which failed (the reason for the first fail is obvious)00:05
cespare i meant for you do go to that location00:05
Xano cespare: Thanks for the clarification :)00:05
wxr erm00:05
cespare wxr: so00:06
cd E:\00:06
i think00:06
or no \00:06
so cd E:00:06
just guessing here, I don't use windows00:06
then run the git command.00:06
Xano: np00:06
wxr not a git repository00:06
do i have to git init?00:06
Makoryu left00:06
Fullmoon joined00:06
cespare wxr: no.00:07
Mowsh left00:07
cespare wxr: one sec, let me track down this repo you're trying to clone00:07
EvanR joined00:07
wxr I'm not trying to clone that one00:07
EvanR can you use git comments to manipulate a repo in a script without cding into that repo dir00:07
git commands00:07
sattu94 left00:07
EvanR not comments00:07
boombatower joined00:08
wxr I'm gonna get from #git to #suicide-watch00:09
mfridh left00:09
williamcotton_ joined00:09
cespare wxr: settle down00:10
williamcotton left00:10
williamcotton_williamcotton00:10
cespare EvanR: Sure. One way is by using GIT_DIR00:10
wxr It says it's receiving the objects BUT THERE ARE NO OBJECTS00:10
cespare EvanR: so for instance GIT_DIR=path_to_your_thing/.git git ls-files00:10
EvanR ah --git-dir00:10
cespare EvanR: oh yeah that too :D00:10
EvanR alrigh00:10
wxr I'm dumb as fuck00:10
fuck me00:10
EvanR are you female?00:11
cespare wxr: what is the exact command you're entering at this point?00:11
EvanR: 100% no00:11
EvanR dammit00:11
wxr It actually worked, thanks00:11
cespare wat00:11
wxr I'm still gonna join suicide-watch anyways..00:11
thanks00:11
cespare ಠ_ಠ00:11
wxr cespare ur the man00:11
EvanR was talking to wxr00:11
wxr have a nice day00:11
EvanR lol00:11
Russell^^ left00:11
wxr left00:11
cespare EvanR: yeah i know. I was saying 100% no00:12
wxr joined00:12
wxr left00:12
bartek left00:12
mister_m joined00:12
dotemacs left00:12
fujin left00:13
tfnico left00:13
denysonique__ left00:13
pl0sh left00:13
necromancer left00:13
akraut left00:13
arnihermann left00:13
NimeshNeema left00:13
shennyg left00:13
claudiu__ left00:13
lyddonb__ left00:13
Dr4g_ left00:13
etcetera left00:13
MetaCosm left00:13
CEnnis91 left00:13
jab416171|Cloud left00:13
rjgonza left00:13
jmcantrell left00:13
GameGamer43 left00:13
mneorr joined00:14
neurodrone joined00:15
Dr4g_ joined00:15
MetaCosm joined00:15
JulieHernandez left00:16
akraut joined00:16
necromancer joined00:16
mikepack joined00:16
RaceCondition left00:16
nik0 joined00:16
wroathe left00:16
warthog9 joined00:17
gchristensen joined00:17
gmarseliss left00:17
RaceCondition joined00:17
wuj joined00:18
project2501b joined00:18
mneorr left00:18
wroathe joined00:18
gitinfo set mode: +v00:18
ehsan left00:18
friskd_ joined00:18
pdtpatr1ck_ joined00:19
EvanR left00:19
pdtpatr1ck_ left00:20
stkrzysiak joined00:20
CEnnis91 joined00:20
Anubisss_ left00:20
glcrazy left00:21
williamcotton left00:21
friskd left00:21
mikepack left00:21
friskd_friskd00:21
arnihermann joined00:21
pdtpatr1ck left00:21
sorahn joined00:22
basepi_ joined00:22
basepi_ left00:23
SamB_ joined00:23
sorahn hey guys, when i run git diff $FILE in my terminal, it spits out something like this. Any idea why?00:23
https://gist.github.com/e933a1b0f05fd087a84c00:23
thiago you have colouring turned on00:23
but I guess your terminal is not colour-capable00:24
sorahn it's definitely color capable...00:24
shennyg joined00:24
SamB left00:24
gusnan left00:24
sorahn example: http://sorahn.com/s/9jq4g5mzgyibs4w.png00:24
arvind_khadri left00:24
fujin joined00:25
rjgonza joined00:25
basepi left00:25
denysonique__ joined00:25
jmcantrell joined00:26
ojimac left00:26
nik0 left00:28
basepi joined00:28
cthuluh sorahn: do you explicitely use a pager (as in git diff ... | pager)?00:28
glennpratt joined00:28
sorahn cthuluh: no. I just enabled the 'color.ui true' and then some of the colors work (pull requests) and some don't (diff)00:29
cthuluh if so, the problem could be your use of "always" instead of "auto" for the color.* config buttons00:29
shibayu36 left00:29
cthuluh "always" is the same as "true", iirc00:29
sorahn right.00:29
dotemacs joined00:29
sorahn but i don't explicitly push it into a pager00:29
it pages on it's own00:29
also if i pipe the diff output into a different diff (colordiff) it works fine.00:30
lasers left00:30
sorahn 'git diff foo.html | colordiff'00:30
etcetera joined00:30
warthog9 left00:31
agathecur left00:31
cthuluh see if "auto" doesn't solve your problem, in the first place00:31
yoklov left00:31
cthuluh (what's a "pull request"? is it related to git or just to some github-like stuff?)00:31
sorahn '$ git config --global ui.color auto'00:31
er, sorry, i mean, when I did get pull it showed all the +'s in colors.00:32
git* pull00:32
GameGamer43 joined00:32
cthuluh ok00:32
thiago left00:32
Noxville left00:32
pl0sh joined00:32
sorahn so, setting ui.color to auto stopped it from showing all the escapes, but it's also not in color.00:32
Xano left00:33
stkrzysiak left00:34
project2501b sorahn: echo $TERM00:34
sorahn xterm-256color00:34
tortvanc joined00:34
project2501b hmm. that should be just fine. i got color in the same type of $TERM00:34
cthuluh sorahn: then your problem is with the pager you use00:34
sorahn i wonder if it's a mac thing.00:34
soulcake left00:35
ojimac joined00:35
lyddonb__ joined00:35
sorahn because on our remote server, (same terminal) the colors show up fine00:35
cthuluh sorahn: what's the output of ''git config core.pager''?00:35
ZGirl joined00:35
sorahn nothing00:35
ZGirl Hello. I'm curious what might be the way to switch branches with dirty work if I'm expecting merge conflicts?00:35
cthuluh then use 'less -R'00:35
ojimac left00:36
ZGirl I mean, not merge conflicts but conflicts.00:36
kevlarman ZGirl: no00:36
pfFredd left00:36
sorahn cthuluh: Yay!00:36
tortvanc left00:36
kevlarman ZGirl: you'll have to stash your code, switch branches, and then apply the stash00:36
mritz joined00:36
sorahn thanks!00:36
arietis left00:37
kevlarman (and that will generate merge conflicts)00:37
yshh joined00:37
cthuluh sorahn: you're welcome00:37
ZGirl Ah sweet, thanks00:37
arvind_khadri joined00:38
NimeshNeema joined00:38
claudiu__ joined00:39
tfnico joined00:39
bartek joined00:39
JulieHernandez joined00:40
lasers joined00:41
yoklov joined00:41
ScottE left00:42
y3di left00:42
sudoquai left00:43
shibayu36 joined00:44
becomingGuru joined00:45
nik0 joined00:46
rbrooks joined00:46
juvenal joined00:47
macrover joined00:48
cooloney joined00:49
dreiss left00:49
seanh joined00:49
LongBeach left00:49
maletor left00:50
aspotashev left00:52
seanh left00:52
macrover left00:54
ehsan joined00:55
seanh joined00:56
seanh left00:56
ericmuyser left00:56
yizumi_ left00:57
ryez_ left00:57
heppy_ joined00:57
nik0 left00:57
heppy_ left00:58
Mowsh joined00:58
kaen joined00:59
kaen left00:59
kaen joined00:59
friskd left00:59
arvind_khadri left01:00
friskd joined01:00
heppy left01:00
friskd left01:00
PsiliPharm joined01:00
felgru_ joined01:00
CannedCorn joined01:01
CannedCorn how would you git clone all branches01:01
?01:01
felgru left01:01
valtih joined01:01
friskd joined01:01
friskd left01:02
warthog9 joined01:02
yizumi joined01:02
sattu94 joined01:03
beatak left01:04
bob2 clone --help01:04
note that by default it does what you ask01:04
envi_ left01:04
bob2 but it does not make local matching branches01:05
spaceonline left01:05
xpot-mobile joined01:06
satyanash left01:07
warthog9 left01:07
mo0nykit joined01:08
friskd joined01:09
Turicas joined01:09
mo0nykit How do I fetch one file from another branch and bring it into the current branch?01:09
Slix` joined01:10
SegFaultAX|work left01:10
yshh left01:11
arvind_khadri joined01:12
arvind_khadri left01:12
arvind_khadri joined01:12
marsilainen left01:12
bob2 I think you mean 'git checkout SOMEREF -- SOMEFILE'01:12
pdtpatr1ck joined01:12
bob2 but do run 'git status' after that to understand what it did01:12
ChaoWang joined01:13
mo0nykit bob2: SOMEREF can be the name of that other branch?01:15
bob2 it's a reference to a commit yes01:16
diogogmt left01:16
mo0nykit bob2: thank you, got it now01:16
ericmuyser joined01:16
ZGirl left01:16
nik0 joined01:16
muddo left01:16
muddo joined01:17
diogogmt joined01:17
xiangfu joined01:19
Destos left01:19
heppy joined01:20
forsto joined01:20
andres left01:20
valtih left01:21
andres_f joined01:22
Riviera left01:22
Goplat joined01:23
adulion22 left01:23
Riviera joined01:25
nik0 left01:27
btanaka left01:28
yizumi left01:28
eletuchy left01:28
yizumi joined01:31
Skipp_OSX joined01:32
Skipp_OSX hello, is there a way to see a diff for a specific commit given the commit number?01:32
bremner sure, man git-diff01:33
gitinfo the git-diff manpage is available at http://jk.gs/git-diff.html01:33
project2501b there is no "commit number"01:33
but yes, sure01:33
Skipp_OSX by commit number I mean signature01:33
Samual joined01:34
project2501b you mean the sha1 hash01:34
terminology is important.01:34
Skipp_OSX yeah, that is what I mean01:34
if I do `git diff <hash>` it gives me all the changes from that sha to HEAD, I just want to see the changes committed in that hash01:35
zoran119 left01:36
XayOn_ left01:36
XayOn joined01:36
candybar left01:36
SethRobertson `git show SHA` will work01:37
as will `git diff SHA^...SHA`01:37
mfridh joined01:37
Skipp_OSX SethRobertson: hey, that worked great! thanks01:39
SethRobertson !thanks01:39
gitinfo Feeling thankful? Type "ExampleUser++", and ExampleUser will score karma points at http://carmivore.com (our preferred way to objectify self-worth). There's really no point to thanking me – instead, why not thank the person who made me help you?01:39
Skipp_OSX SethRobertson++01:40
candybar joined01:40
_inc left01:40
SethRobertson cespare: Did you get an answer to your question? !submodule_rm01:40
gitinfo cespare: [!submodules_rm] You want to delete submodules? Excellent choice! All commands are in the superproject. Edit/delete .gitmodules to remove the submodule. Then `rm -rf submodulepath; git rm -f --cached submodulepath; git commit -am "Removed submodules!"` Inspect .git/config for "submodule" entries to remove. Inspect .git/modules for caches to remove "!gitslave" or "!subtree" (type them!) might be alternatives01:40
candybar left01:40
_inc joined01:41
candybar joined01:41
warthog9 joined01:41
CannedCorn left01:42
zivester left01:43
herdingcat joined01:44
CannedCorn joined01:45
zdk joined01:46
nik0 joined01:46
resmo__ joined01:46
_inc left01:47
hadronzo` joined01:47
zivester joined01:47
subbyyy joined01:47
felgru_ left01:47
oriba_ joined01:47
CannedCorn left01:48
gllera left01:48
cooloney left01:48
herdingcat left01:49
mister_m left01:49
cooloney joined01:49
resmo_ left01:50
hadronzoo left01:50
oriba left01:50
tatsuya_o left01:52
tatsuya_o joined01:52
_inc joined01:53
BiggFREE joined01:55
QshelTier joined01:55
Bombe left01:56
berserkr left01:56
Riviera left01:57
nik0 left01:57
zdk left01:58
zdk joined01:58
xpot-mobile left02:00
pw_ joined02:03
mcluskydodallas left02:05
matthiaskrgr left02:05
apok left02:05
gnychis left02:05
ben225 left02:06
Turicas left02:06
matthiaskrgr joined02:07
jameswarren left02:07
yoklov left02:08
iamjarvo joined02:10
herdingcat joined02:11
PsiliPharm left02:11
wroathe left02:11
guns joined02:11
zoran119 joined02:12
Skipp_OSX left02:12
mo0nykit bob2++02:13
oriba_ left02:14
kai_ joined02:14
BlindOracle left02:15
diogogmt left02:16
nik0 joined02:16
EugeneKay SethRobertson - it's worth noting that the karmabot is no longer idling here02:16
Which makes me a sad karmawhore02:16
SethRobertson EugeneKay++02:17
pw_ left02:17
SethRobertson That is odd since they have data as of yesterday in their system02:18
jigal left02:18
yoklov joined02:18
aeontech left02:19
JulieHernandez left02:19
diogogmt joined02:19
mfridh left02:19
Targen joined02:20
EugeneKay shrugs02:21
wroathe joined02:21
pandeiro joined02:21
Vampire0_ left02:21
williamcotton joined02:21
friskd_ joined02:23
mister_m joined02:24
friskd left02:24
friskd_friskd02:24
jangell joined02:24
RaceCondition left02:25
friskd left02:25
mfridh joined02:25
enmand left02:27
friskd joined02:27
pdtpatr1ck left02:28
nik0 left02:28
bitkiller left02:30
kennethreitz_kennethlove02:30
_kennethlovedaniellindsley02:31
pro_metedor left02:31
cannonball left02:31
warthog9 left02:32
becomingGuru left02:33
becomingGuru joined02:33
maletor joined02:33
daniellindsley left02:33
BlindOracle joined02:34
LimitedAtonement joined02:35
heppy left02:35
Vampire0_ joined02:35
kennethreitz joined02:35
maletor left02:36
ura left02:37
LmtdAt left02:38
unreal left02:39
Per4u3e joined02:40
unreal joined02:41
edheldil left02:41
SegFaultAX joined02:42
adamm left02:43
adamm joined02:45
laxatives_ joined02:46
nik0 joined02:46
Araxia left02:46
laxatives_ how do I commit to a url? can I commit to a url? I've just remote added, but when I try to remote push, theres nothing to push02:47
SethRobertson !repo02:47
gitinfo [!subprojects] So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely seperate. Otherwise your best options are "!submodule" "!gitslave" and "!subtree" Try typing those commands into this IRC channel.02:47
SethRobertson Sorry, !repro02:47
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting.02:47
laxatives_ https://gist.github.com/204143802:47
nevermind, i have no idea what changed, but it went through this time02:49
SethRobertson You were trying to use `git remote add -A filename` when you wanted to use `git add filename`02:49
Yuuhi` joined02:50
SethRobertson `git remote` manages your connection to other repositories, and typical+l-y w02:50
mo0nykit1 joined02:50
SethRobertson those repositories would not have the name of a .c source code file02:50
unreal left02:51
laxatives_ eh nevermind it didn't stick. I got the adding part, I thought I cuold use -A like I could for my main repo, but I guess not. The file added, but now that it exists in the remote repo, I can't figure out how to push a newer version since it tells me everything is up to date02:51
but I can clearly see on github its the old version02:52
Yuuhi left02:52
SethRobertson You can use `git add -A` if you must02:52
mo0nykit left02:52
SethRobertson Continue with your pastebin of what you did02:52
arvind_khadri left02:53
laxatives_ http://pastebin.com/raZK2Nzy02:54
SethRobertson We already had the discussion that `git remote add` is not the droid you are looking for. I strongly suggest reading !book, but as a shortcut:02:55
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable02:55
SethRobertson git add sgemm-scall.c; git commit -m "I changed this file"02:55
git push02:55
friskd left02:56
JessicaHernandez joined02:56
SethRobertson The git-push may or may not work depending on how you created/cloned this repo02:56
xiangfu left02:56
xiangfu joined02:57
nik0 left02:57
laxatives_ thanks Seth, seems to have solved the issue02:58
sgm[-1] joined02:59
pdtpatr1ck joined02:59
dv310p3r joined03:04
wroathe left03:04
CannedCorn joined03:05
arvind_khadri joined03:06
nazgul101 left03:08
i-make-robots joined03:09
unreal joined03:10
i-make-robots hi, git. how do i change the config so git stops forcing me to upload with windows line endingS?03:10
SethRobertson i-make-robots: !crlf03:10
gitinfo i-make-robots: to fix problems with line endings on different platforms, check out http://line-endings.gitrecipes.de/03:10
duckxx joined03:11
starlon left03:11
wuj left03:13
el2ro left03:14
i-make-robots sorry, that article doesn't seem to help. git is expecting me to convert to CRLF before I commit and I want to make it stop that.03:14
SethRobertson Either you have a pre-commit hook which is doing it, or you have eol/crlf settings in your .git/config03:15
duckxx left03:15
SethRobertson The article talks about the latter03:15
nik0 joined03:16
marcuy_ left03:19
aeontech joined03:20
Fullmoon left03:21
Fullmoon joined03:22
nazgul101 joined03:22
CannedCorn left03:23
i-make-robots so... all I do is create a file called .gitattributes, tell it that my problem file is text, and then add & commit that file?03:23
gtar joined03:24
bob2 to be clear, by default git doesn't fiddle your files03:24
SethRobertson Seems unlikely03:24
CannedCorn joined03:24
el2ro joined03:25
SethRobertson i-make-robots: Check to see if you have a file .git/hooks/pre-commit which is executable03:26
cmn that should work, if you tell git that you want crlf conversion03:26
gtar left03:26
SethRobertson he claims git isn't letting him commit with wrong EOL settings03:26
Fullmoon_ joined03:27
AlbireoX joined03:27
Fullmoon__ joined03:27
i-make-robots fatal: lf would be replaced by crlf in [problem file]03:27
bob2 when doing what? commit? push?03:27
i-make-robots commit03:27
cmn why would git transform to crlf?03:28
that has to be a setting you've put03:28
Fullmoon left03:28
Fullmoon__Fullmoon03:28
CannedCorn left03:28
i-make-robots *shrug* this is my first project, I'm lucky i got it running at all.03:28
i mean, "yes, i agree. but what to do about it?"03:28
nik0 left03:28
bob2 to clarify, everyone is kinda implying that someone did something odd to your config or repo03:29
did you make the repo yourself?03:29
cmn check your config03:29
git config --list03:29
SethRobertson core.safecrlf is the man git-config setting you want to look at03:29
gitinfo the git-config manpage is available at http://jk.gs/git-config.html03:29
killfill left03:29
i-make-robots cmn - core.autocrlf=true, core.safecrlf=true03:30
SethRobertson That or core.autocrlf or core.eol03:30
i-make-robots i don't see a core.eol in my config.03:30
killfill joined03:30
SethRobertson which means native, and I will wildly guess windows for you03:30
i-make-robots yep.03:30
git config --global core.safecrlf="false" ?03:31
Fullmoon_ left03:31
SethRobertson well, changing autocrlf to warn will allow the commits, but also see http://stackoverflow.com/questions/1598260/make-crlf-warnings-go-away03:31
becomingGuru left03:32
Mowsh left03:33
johnkpaul left03:34
i-make-robots thank you! :)03:38
JessicaHernandez left03:38
gabeh joined03:39
Slix` left03:42
kadoban_ left03:43
sattu94satyanash03:44
laxatives_ left03:44
stkrzysiak joined03:46
nik0 joined03:46
i-make-robots left03:47
jangell left03:50
dr0id joined03:50
xsbeats left03:51
alx- joined03:51
igotnolegs joined03:52
ericmuyser left03:53
Bass10 left03:56
lyddonb joined03:56
iamjarvo do you guys prefer a gui like source tree or gitx or command line03:57
nik0 left03:57
nevyn depends what it's for.03:57
mostly I tend to use commandline03:57
sometimes if I think the history mgiht be a bit of a tangle it's useful to visualise it in gitk03:58
ericmuyser joined03:58
jony joined03:58
ThePawnBreak joined03:58
malandro95 joined03:59
iamjarvo nevyn: true. i like command line but im starting to like the guis. seems to help visualizations04:00
orafu left04:00
orafu joined04:00
jangell joined04:02
bob2 gitk is handy for history stuff04:04
magit is awesome for almost everything else04:04
milki emacs mode for git?04:05
o, no, thats probably something else04:05
bob2 more like a little application inside emacs then a mere mode04:05
milki or...not04:05
f0i left04:06
iamjarvo wonder if fugitive for vim is good04:06
dfr|mac joined04:07
gnufied joined04:08
gabeh left04:08
griotspeak left04:09
zanneth joined04:12
BiggFREE left04:12
kai_ left04:15
twisted` left04:16
twisted` joined04:16
nik0 joined04:16
gavin_huang joined04:17
BryanRuiz1 left04:19
nik0 left04:19
Per4u3e left04:20
friskd joined04:20
Fullmoon left04:20
twisted` left04:20
JackWinter left04:20
dfr|mac left04:21
flippo left04:22
infogulch left04:22
lindenle_ left04:24
Noxville joined04:24
beautifulmind joined04:26
lyddonb left04:29
`Assassin joined04:29
envi_ joined04:29
lyddonb joined04:29
harshpb joined04:30
gabeh joined04:31
lyddonb left04:32
subbyyy left04:33
bindaasomatic joined04:33
bindaasomatic left04:33
pandeiro left04:33
jameswarren joined04:34
mgpcoe left04:34
Sadin left04:35
kukks left04:35
kenperkins joined04:36
lindenle_ joined04:37
OOPMan left04:37
heppy joined04:38
arvind_k joined04:38
arvind_khadri left04:38
seoaqua left04:40
MaskRay joined04:40
sporous left04:43
sporous joined04:43
tyatpi joined04:43
kenperkins left04:43
friskd left04:45
arvind__ joined04:46
nik0 joined04:46
JackWinter joined04:47
arvind_k left04:47
mo0nykit joined04:47
mo0nykit left04:47
mo0nykit joined04:47
mo0nykit left04:47
mo0nykit joined04:48
mo0nykit left04:48
mo0nykit joined04:48
mo0nykit left04:48
mo0nykit joined04:49
mo0nykit left04:49
mo0nykit joined04:49
mo0nykit1 left04:49
mgpcoe joined04:51
ura joined04:52
arvind__ left04:52
beautifulmind left04:52
Per4u3e joined04:53
ThePawnBreak left04:53
ericmuyser left04:53
Davey_ joined04:54
Davey_ left04:54
Davey_ joined04:54
mo0nykit left04:54
pidus joined04:54
mo0nykit joined04:54
xinming left04:55
eno left04:56
nik0 left04:58
eno joined04:58
thursday left04:59
arvind__ joined05:00
SegFaultAX left05:01
DofLeFou joined05:06
diogogmt left05:07
jony left05:09
mo0nykit1 joined05:10
mritz left05:11
madewokherd left05:12
mo0nykit left05:14
mo0nykit joined05:14
mo0nykit1 left05:15
kaen left05:15
nik0 joined05:16
joshsmith left05:20
neurodrone left05:21
`10 left05:22
mandric left05:23
williamcotton left05:25
mritz joined05:26
mister_m left05:26
konrnomad05:27
nomad left05:28
nik0 left05:28
rurufufuss joined05:29
weiyang joined05:30
zanneth left05:31
pidus left05:31
stepnem joined05:33
pidus joined05:34
mo0nykit left05:35
pidus_ joined05:35
pidus left05:38
pidus_pidus05:38
stkrzysiak left05:38
envi_ left05:39
arvind__ left05:40
Davey__ joined05:40
Davey_ left05:40
glennpratt left05:40
mo0nykit joined05:41
arti_t joined05:41
jony joined05:42
ericmuyser joined05:42
krz joined05:43
timoxley left05:43
freimatz joined05:43
mo0nykit left05:45
nik0 joined05:46
timoxley joined05:47
Fullmoon joined05:48
alx- left05:49
dreiss joined05:51
wtking joined05:52
caseymcg joined05:52
wtking Does anyone know the status of ETags with gitweb (especially snapshots)?05:52
satyanash left05:53
satyanash joined05:54
warthog9 joined05:55
hadronzo` left05:57
f0i joined05:57
hw1979 joined05:57
yizumi left05:58
nik0 left05:58
yizumi joined05:58
malandro95 left06:01
yizumi left06:01
yizumi joined06:01
harshpb left06:02
wtking nevermind, I'll ask on the mailing list06:03
wtking left06:03
mwrosen joined06:04
harshpb joined06:04
timoxley left06:05
mgpcoe left06:05
FACEFOX joined06:06
FACEFOX left06:06
WillMars_ left06:07
FACEFOX joined06:08
FACEFOX left06:08
Kewlj1313 left06:08
arti_t left06:09
arti_t joined06:09
giallu joined06:15
nik0 joined06:16
dreiss left06:18
kaen joined06:18
kaen left06:18
kaen joined06:18
Kewlj1313 joined06:19
freimatz left06:21
fairuz_ joined06:23
jony left06:27
nik0 left06:27
Dave^| joined06:28
freimatz joined06:29
shruggar joined06:30
OOPMan joined06:31
friskd joined06:31
giallu left06:31
Davey__ left06:31
arti_t left06:32
arti_t joined06:33
shruggar left06:37
LongBeach joined06:41
dvide joined06:42
yoklov left06:42
toothr left06:42
arti_t left06:43
arti_t joined06:43
mwrosen left06:44
flijten joined06:44
mishok13 joined06:46
libertyp1ime joined06:46
nik0 joined06:46
libertyprime left06:47
libertyp1ime left06:47
MestreLion joined06:47
libertyprime joined06:48
toothr joined06:48
erickr joined06:48
marthinal joined06:49
JohnBat26 joined06:49
MestreLion guys, I've found weird behavior in git 1.7.1... $GIT_EDITOR, $VISUAL, $EDITOR env vars are NOT set, core.editor in config is NOT set, vi executable is set to vim, and still git opens.. nano! How come?06:49
dreiss joined06:50
MestreLion (the only "especial" thing about nano in my system is that /usr/bin/editor points to it... but Git's documentation does not ever mention using editor command as one of the alternatives)06:51
`Assassin left06:52
MestreLion any clues? is this a known issue?06:52
yizumi left06:52
MestreLion man git-vars06:54
martinjlowm joined06:54
MestreLion bot offline?06:55
number_number left06:57
Goplat left06:58
yizumi_ joined06:58
MestreLion man git vars06:59
gitinfo the git manpage is available at http://jk.gs/git.html06:59
nik0 left06:59
`Assassin joined07:00
vdv left07:01
iamjarvo left07:02
MestreLion ok, git var -l shows me GIT_EDITOR=editor , but this is NOT coming from environment var $GIT_EDITOR, since this is empty. Any hint on where this value came from?07:03
jokergoo joined07:03
cmn core.editor07:03
or just the default07:03
MestreLion nope, core.editor is also not set07:03
cmn then it's the default07:03
MestreLion and where this default is set?07:04
cmn somewhere in the source code07:04
open_editor() or something like that07:04
MestreLion so docs should be fixed07:04
nevyn MestreLion: what's update-alternatives --list editor say?07:04
or default-system-editor maybe07:04
cmn maybe, what docs are you talking about?07:04
nevyn check /etc/alternatives07:04
MestreLion nevyn: as I said earlier, editor IS set to nano... but there's nowhere in git's docs hat say it will try editor command07:05
bigkitty left07:05
nevyn editor is what an application should open as a text editor on a system with alternatives07:05
unless the user overrides07:05
cck joined07:05
cmn MestreLion: so the default should be to fail?07:06
craigntammy left07:06
pidus left07:06
hw1979 left07:06
nevyn the whole point of editor was to stop stupid vi vs emacs vs blah arguments based on individual packager/developer's whim07:06
MestreLion nope... it should try vm, as man git says07:07
gitinfo the git manpage is available at http://jk.gs/git.html07:07
nevyn vm?07:07
or vi07:07
MestreLion vi, sorry07:07
nevyn the docs are buggy file a bug.07:07
MestreLion I'm trying to find the URL / man page that described the behavior07:07
nevyn what does the man page FOR your os say?07:07
not the generic git man page?07:08
MestreLion but I remember reading: $GIT_EDITOR, core.editor , $VISUAL, $EDITOR, vi07:08
in that order07:08
nevyn MestreLion: what os are you running?07:08
MestreLion Mint 1007:09
cmn it's in var07:09
MestreLion it was man git-var07:09
gitinfo the git-var manpage is available at http://jk.gs/git-var.html07:09
cmn but your distribution can override it07:09
nevyn which mint varient?07:09
ianmcorvidae left07:09
MestreLion " The order of preference is the $GIT_EDITOR environment variable, then core.editor configuration, then $VISUAL, then $EDITOR, and then finally vi."07:09
oehman joined07:09
cmn unless whoever builds the code overrides it07:09
nevyn that's in the mint manpage?07:09
file a bug.07:10
MestreLion nevyn: main edition, x64, based on Ubuntu 10.1007:10
nevyn if it doesn't work that way.07:10
cmn git does default to vi07:10
it's probably your distro07:10
MestreLion but "editor" should be in the list07:10
number_number joined07:10
nevyn cmn: upstream git might07:10
tsdh joined07:10
cmn what might?07:10
MestreLion hummm, maybe my git was patched by distro to try editor before vi?07:10
nevyn but debian->ubuntu->mint git should not07:10
cmn MestreLion: then file a bug with your distro07:10
nevyn yes07:11
MestreLion I'll check if there are any patches07:11
cmn editor.c:6:#define DEFAULT_EDITOR "vi"07:11
nevyn that's what I'm saying the docs are buggy. because the package was altered to conform to policy but the docs wern't07:11
friskd left07:11
MestreLion i'll download the sources for my distro and check that out cmn07:11
Sigma joined07:12
ianmcorvidae joined07:12
ianmcorvidae left07:12
ianmcorvidae joined07:12
MestreLion (btw, Mint uses Ubuntu's repos for git... so it's either Ubuntu or inherited from Debian07:12
nevyn http://www.debian.org/doc/debian-policy/ch-customized-programs.html#s11.407:12
_AlbireoX joined07:13
krisfrem1n joined07:13
cbreak-work joined07:14
RickXy joined07:14
Targen_ joined07:14
tewecske joined07:15
com4_ joined07:15
nevyn MestreLion: the git-var manpage on debian has that it calls vi07:15
cmn yes, Debian changes the default to 'editor'07:16
so it matches the systerm07:16
jmd joined07:16
pidus_ joined07:16
XayOn_ joined07:16
Quanteek joined07:16
nik0 joined07:16
rogg joined07:16
pidus_ left07:16
esc_ joined07:16
cubb` joined07:17
nevyn so the docs are wrong07:17
on debian07:17
MestreLion but they didn't patch that file07:17
jmd How can I update my local branch, from a remote, discarding any changes in the local one?07:18
nevyn jmd: git reset --hard remote/branch07:18
after doing git remote update07:18
jmd nevyn: Thanks.07:18
ianmcorvidae left07:20
papegaaij joined07:20
ph^ joined07:20
MestreLion weird... there are no patches concerning editor in the package07:20
heidar_ joined07:20
_main_ joined07:21
nevyn and $EDITOR isn't set in your shell?07:21
by /etc/profile07:21
airborn joined07:21
AlbireoX left07:21
Targen left07:21
XayOn left07:21
forsto left07:21
rjgonza left07:21
esc left07:21
sobel left07:21
__main__ left07:21
lonewulf` left07:21
philips left07:21
bolt left07:21
com4 left07:21
charon left07:21
heidar left07:21
krisfremen left07:21
akiress left07:21
rrs left07:21
Strogg left07:21
Akari` left07:21
ianmcorvidae joined07:21
ianmcorvidae left07:21
ianmcorvidae joined07:21
MestreLion oh...07:22
cmn MestreLion: it's not a patch07:22
MestreLion its a built-time configure07:22
nevyn it's not?07:22
MestreLion it's a configure option07:22
philips joined07:22
nevyn ah07:22
gabeh left07:22
nevyn hrm07:22
MestreLion check configure.ac07:22
hrm ?07:22
jokergoo left07:22
nevyn so if you can build it using a configure option in a way that makes the manpage wrong...07:23
who should fix it?07:23
MestreLion git, since this is an upstream configure option07:23
mishok13 left07:23
shruggar joined07:23
MestreLion it should change the man page accordinly07:23
nevyn that's sortof what I was thinking07:23
MestreLion or edit the manpage to a more generic version07:23
a simple "This can be overruled at compile time" in man git-var would be enough07:24
gitinfo the git-var manpage is available at http://jk.gs/git-var.html07:24
_main___main__07:24
Sitethief joined07:25
nevyn cmn: thoughts?07:25
ianmcorvidae left07:25
ianmcorvidae joined07:26
ianmcorvidae left07:26
ianmcorvidae joined07:26
MestreLion ./configure --help | grep editor07:26
cmn if you can provide a patch that doesn't break things, it might get accepted, but it's not really an issue07:26
MestreLion --with-editor=VALUE Use VALUE as the fall-back editor instead of 'vi'.07:26
bolt joined07:27
TTSDA_ joined07:27
MestreLion theres even an example... which says... /usr/bin/editor :D07:27
TTSDA left07:28
fisted_ left07:28
akiress joined07:28
nik0 left07:28
TTSDA_ left07:28
TTSDA_ joined07:28
rjgonza joined07:28
TTSDA_TTSDA07:28
MestreLion What would be the best approach? ./configure edits the manpage at build time, or manpage text says about the overridable ./configure option?07:30
fisted joined07:30
MestreLion are you guys familiar with git's contribution workflow? I have no idea where to start07:31
cmn read the docs on it07:31
Documentation/SubmittingPatches07:32
flavius joined07:32
MestreLion where are these docs? /usr/share/doc ?07:32
nevyn MestreLion: the latter of those sounds easier.07:32
MestreLion: in the source07:32
ipalaus joined07:32
adamm left07:32
nevyn MestreLion: the former sounds "better"07:33
sq-one joined07:33
arti_t left07:34
bigkitty joined07:34
arti_t joined07:35
giallu joined07:35
cmn they're in git.git07:35
jony joined07:36
arvind_khadri joined07:37
arvind_khadri left07:37
arvind_khadri joined07:37
neersightedneersighted|AFK07:38
MestreLion and is there an official git.git URL?07:39
cmn there are a few; use whichever one you feel like07:39
kernel.org, github.com, git.or.ca07:40
git.or.cz, I mean07:40
or code.google.com07:40
jceb joined07:40
Fullmoon_ joined07:40
Fullmoon_ left07:40
Per4u3e left07:40
jony left07:40
erickr left07:41
Error404NotFound joined07:41
Error404NotFound left07:42
Sigma left07:43
Fullmoon left07:43
rtuin joined07:43
siprbaum_ left07:43
psoo joined07:45
aspotashev joined07:45
mishok13 joined07:46
arti_t left07:46
twb joined07:46
nik0 joined07:46
arti_t joined07:47
twb I have a repo that contains secrets, which other users on the system should not be able to access. This is straightforward to achieve -- just make sure you run "umask 077" before doing any work in that repo. However, can I tell git to do this "inside itself", just for that repo? I looked at git-config manpage and I couldn't see how to do it.07:47
cooloney left07:48
cmn git doesn't track permissions, only the executable bit07:48
Chib joined07:48
dr0id left07:49
glcrazy joined07:50
twb git has --git-dir and --work-tree args, which avoid having to cd into the repo before running git.07:50
I'm hoping for something similar w.r.t. umasks07:50
tyatpi left07:50
twb Otherwise if I go into that repo and do something like git bisect or checkout, and forget to set umask first, the files git creates will be more permissive than they should07:51
shruggar cmn: I think he means that others shouldn't be able to access the entire repo07:51
twb IOW I don't need git to *remember* the permissions of a single file; I need it to remember that files it creates (including in .git) should not be group/world readable.07:51
shruggar twb: I believe umask is the only way to achieve this07:51
ThomasLocke joined07:51
twb shruggar: okey dokey07:51
I guess there's still one feature darcs has that git doesn't ;-)07:52
acrocity left07:52
cmn git isn't interested in that feature07:52
bigkitty left07:53
acrocity joined07:53
twb Yeah, well, fair enough, it's just a little annoying in this specific edge case07:53
shruggar twb: you should set your umask anyway, as it's important that other programs you use to edit your worktree respect the setting too07:53
twb: if you only care about the repo, not the worktree, use gitolite07:53
twb shruggar: I *do* set my umask, but my general umask is different from my repo umask07:53
ptrb left07:54
twb shruggar: this repo is basically stuff like .ssh/id_rsa, so I do care about the work tree, and it's not really feasible to say "oh just put a web smarthost in the middle"07:54
cmn that wasn't a proposed solution07:55
napoletani1 joined07:55
cmn you shouldn't be putting secret keys in a repo anyway07:55
twb cmn: why not?07:55
How else do you know why they changed?07:55
cmn why would private keys change?07:55
they're cryptographically secured07:55
twb Because the expire, or are compromised, or a new algorithm is released07:55
martinjlowm-lptp joined07:56
gldn joined07:56
napoletani1 left07:56
cmn but what for?07:56
twb Or you have a new email address and need to add its subkey07:56
Karmaon left07:56
cmn for ssh keys? that sounds more like gnupg07:57
twb Sure. They're also in the repo07:57
cmn PGP/GPG does need sync07:57
but the private ssh keys don't07:58
erickr joined07:58
nik0 left07:58
jmd left07:58
twb Well, suppose we're only talking about GPG keys instead, then.07:58
cmn then you need rsync07:58
twb I have no fucking clue what you're talking about07:58
cmn man rsync07:59
shruggar "I'm trying to use git to manage something other than what git is for, and I'm running into problems because of it. Please help"07:59
seoaqua joined07:59
cmn you don't need versioning07:59
mabrand joined07:59
airborn left07:59
twb How would rsync remember who/what/why a change was made to a keyring?07:59
cmn you need syncrhonisation07:59
sajbar joined07:59
ph^ left08:00
twb shruggar: I want to control versions. With a version control system. It would be nice if git had could help me keep it secure, but you said it can't, so that's fine. But now I seem to need to defend the need for VCS *at all*, so that's what I'm doing.08:00
cmn if you do feel your keyring absolutely needs to be versioned, then you need to set the umask when you checkout08:00
ph^ joined08:01
twb cmn: right. And any other operation that might create a file in the work tree or index or object tree, of course, since otherwise an attacker could just pull a historic version out of an insecure object tree.08:01
f0i left08:01
cmn right, which becomes a deployment problem08:02
rendar joined08:03
aspotashev left08:03
iocor joined08:03
arti_t left08:03
arti_t joined08:04
kremiak joined08:04
igotnolegs left08:05
twb Incidentally, core.sharedRepository appears to exist so people can go the other way -- have a restrictive default umask, and a more permissive repo08:05
ph^ left08:05
twb Hmm, wait, what happens if I just set that to 0600...08:06
as3llus joined08:06
cmn no, sharedrepository exists so several users can use the same repo08:06
ipalaus left08:07
cmn without making stuff unreadable/unwritable to people who come afterwards08:07
twb I don't understand why you think that's different from "permissive"08:07
Quanteek left08:07
shruggar left08:07
hyperair left08:08
stringoO left08:08
cmn it's about the sticky bit08:09
shruggar joined08:10
twb Huh, OK. That's not obvious (to me) from the documentation.08:10
cmn it's not about letting other people read you data, but work with them08:10
that's because you use that stuff so you don't have to set the bits yourself08:10
jutaro joined08:11
Adaptee joined08:11
twb Looks more like setgid bit than sticky bit from my simple test08:11
mritz left08:12
khmarbaise joined08:13
twb http://paste.debian.net/159799/08:13
scientes joined08:13
scientes !lol08:13
gitinfo git config --global alias.lol "log --oneline --graph --decorate"08:13
senny joined08:14
cmn right, that might be it; sticky is probably the /tmp one08:15
twb Unsurprisingly, it looks like it affects permissions within GIT_DIR but not GIT_WORK_TREE08:15
cmn: yep08:15
ipalaus joined08:15
cmn those are not meant to have a worktree08:15
twb cmn: sticky says you can only delete files in it if you own them, or thereabouts. setgid says any files made in there default to being grouped same as the parent dir08:15
shruggar left08:16
twb although setgid doesn't do anything about permissions, which is probably why the sharedRepo variable is needed -- so git will make sure the permissions are OK08:16
nik0 joined08:16
tqmz joined08:17
heppy left08:18
ipalaus left08:20
Akari` joined08:22
boombatower left08:22
lausi left08:25
gavin_huang left08:25
lausi joined08:25
gavin_huang joined08:25
bigkitty joined08:27
Karmaon joined08:27
Karmaon left08:27
Karmaon joined08:27
kerrick left08:27
_aeris_|away_aeris_08:28
nik0 left08:28
oehman left08:28
nowhere_man left08:28
nowhere_man joined08:29
kpreid joined08:30
seoaqua left08:30
dpino joined08:31
ph^ joined08:32
ojimac joined08:33
shachaf_ joined08:33
shachaf_ left08:33
solofight_ joined08:34
tatsuya_o left08:35
solofight_ wow - https://bitbucket.org/08:35
so till 5 users we can have unlimited private and public repos without any charge and without a time constraing ! ?08:35
constraint*08:35
their service is reliable ?08:35
solofight_solofight08:36
cmn it's likely a loss leader for Atlassian08:36
ology left08:36
solofight cmn: ? loss leader ?08:36
macrover joined08:37
whitman joined08:37
jast business term08:37
hyperair joined08:37
jast http://en.wikipedia.org/wiki/Loss_leader08:37
solofight got it08:37
to gain customers08:37
seoaqua joined08:37
jast yeah, that's the idea08:37
cmn right, once you're at their servers, you're more likely to keep using them when you outgrow the free offer08:37
ojimac left08:38
ericmuyser left08:38
solofight :) learned two new things today till now08:39
thanks jast cmn08:40
flavius left08:41
tonesfrommars left08:42
twb left08:42
drizzd joined08:42
arvind_khadri left08:43
ipalaus joined08:43
eijk joined08:44
nik0 joined08:46
solofight cmn: how do you know that they are incurring loss with that service initially to get business ?08:47
bitbucket is the only provider who offers unlimited private repositories for free ?08:48
till 4 users ?08:48
5 users*08:49
FauxFaux solofight: Well, they're not making any money from it, are they..08:49
solofight FauxFaux: dont know - wildly guessing - ads ? like how bloggers make money .. ?08:50
jast well you can use your repository without even visiting the site much, can't you :)08:50
FauxFaux solofight: There aren't any ads. :)08:51
shruggar joined08:51
toothr left08:52
MaskRay left08:54
anderse_ joined08:54
toothr joined08:56
Sigma joined08:56
solofight FauxFaux: yeah :)08:56
jast: yes :P08:56
you need to use the site for creation alone i think08:57
LmtdAt joined08:57
solofight unless they have console access as well08:57
cmn solofight: you need to pay money to keep the servers running and to pay for bandwidth and for storage08:58
if you're not paying for it, they're losing money on you08:58
nik0 left08:58
d3vic3 joined08:59
marthinal left09:00
sawgij left09:00
LimitedAtonement left09:00
solofight cmn: understood09:00
thanks09:00
mo0nykit joined09:01
mo0nykit !remote09:01
gitinfo [!remote_branches] Remote branches are not created locally on clone. They show up as remote branches (git branch -r). To create local branches from them use git checkout -b local_name remote/branch_name or more recently git checkout -t remote/branch-name09:01
mo0nykit How do I inspect the URL of an existing remote?09:02
FauxFaux git remote -v09:02
wereHamster mo0nykit: git remote -vv09:02
FauxFaux git remote -vvv09:02
wereHamster git remote -vvvv09:02
FauxFaux JINX09:02
mo0nykit thank you09:02
blacktulip joined09:04
sami joined09:04
sami Hi, i've got a problem which i don't know how to explain. How can i clone a git repo without an absolut path.09:05
FauxFaux With a relative path!09:06
bruce__ left09:06
sami like the following git@<server>:/dont/want/full/path/to/this.git09:06
beautifulmind joined09:06
FauxFaux sami: You mean, you want it relative to your home directory? Or you want to alias away the /dont/want/full/path bit?09:06
nik0 joined09:07
diegoviola joined09:07
soulcake joined09:07
sami FauxFaux: if the repo is called this.git i want to clone it by <server>:this.git that's what i'm having trouble to explain. Sorry09:07
nik0nicko09:08
CannedCorn joined09:08
sami FauxFaux: But i guess i want it relative to my home dit09:08
dir*09:08
FauxFaux I don't think you can do that (beyond changing the user's home or symlinks). It might be easier just to install !gitolite09:09
gitinfo Want to host as many git repos (and users!) as you like, on your own server, with fine-grained access control? You want gitolite: https://github.com/sitaramc/gitolite09:09
Vile joined09:09
FauxFaux It /is/ relative to your home dir. "git clone you@server:foo.git" looks in /home/you/foo.git.09:09
libertyp1ime joined09:09
sami I'm sorry FauxFaux :). Didn't think it was relative to my homedir.09:11
I've got gitosis installed so the repos exist within the ~repositories directory09:11
beautifulmind left09:12
tcurdt joined09:13
sami left09:13
nicko left09:14
xiangfu left09:15
bigkitty left09:17
defts joined09:17
arvind_khadri joined09:19
CannedCorn left09:20
thiago joined09:20
Orbitrix left09:21
forsto joined09:22
beautifulmind joined09:23
tvw joined09:23
drizzd left09:25
BiggFREE joined09:25
Sigma left09:26
QiBala left09:26
[mbm] left09:26
icdark joined09:26
neurodamage left09:26
shuffle2 left09:26
legumbre left09:27
flazz left09:27
artagnon left09:27
mo0nykit1 joined09:28
hyperair left09:29
mo0nykit left09:30
marcogmonteiro joined09:31
zub joined09:31
envi_ joined09:32
LimeBlast joined09:33
L42y left09:34
jameslordhz joined09:34
jameslordhz hi09:34
L42y joined09:34
kremiak left09:36
Element9_work joined09:37
overbythere joined09:37
jameslordhz hi09:39
OOPMan left09:40
mo0nykit1 left09:41
cbreak-work hihihi09:42
harish joined09:42
Guest16470 joined09:42
sneakret joined09:43
artagnon joined09:43
khmarbaise left09:43
flazz joined09:43
Riviera joined09:43
shuffle2 joined09:44
neurodamage joined09:44
teotwaki joined09:44
Guest16470 left09:44
Guest16470 joined09:44
lasers left09:44
dreiss left09:45
charon joined09:45
charon left09:45
charon joined09:45
_iron joined09:46
tatsuya_o joined09:46
mo0nykit joined09:47
BlindOracle left09:51
soc42 joined09:52
hyperair joined09:53
Fullmoon joined09:53
cyphase left09:53
falena joined09:54
QshelTierBombe09:54
weiyang left09:55
jameslordhz left09:55
BlindOracle joined09:55
JackWinter left09:56
sgm[-1] left09:58
shruggar left09:58
iocor left09:59
JackWinter joined09:59
f0i joined09:59
xiangfu joined10:00
vervic joined10:03
sigs hey give me some too10:03
stodan joined10:03
iocor joined10:04
Tabmow left10:05
iocor left10:05
herdingcat left10:06
harish left10:06
Mowsh joined10:06
shruggar joined10:07
y3di joined10:08
Tabmow joined10:08
Orbitrix joined10:09
francisfish joined10:09
mo0nykit left10:10
timoxley joined10:10
forsto left10:10
felgru joined10:11
enmand joined10:15
johnathanb joined10:15
dpino left10:15
Shusshu joined10:17
babilen_ left10:18
enmand left10:18
Shusshu left10:19
fayimora joined10:19
Quanteek joined10:20
seoaqua left10:22
zoran119_ joined10:24
erickr left10:24
erickr joined10:25
cyphase joined10:25
thiago left10:27
zoran119 left10:27
dpino joined10:27
MestreLion is there an official bug tracker or something for git?10:28
hyperair left10:29
felgru left10:29
charon MestreLion: just send an email with as much detail as possible to [email@hidden.address] (no subscription required)10:29
MestreLion tank you charon10:29
thank*10:30
charon of course, prepare for "please test with v1.7.9.4" if your report states you're way behind :)10:30
MestreLion: you can search the list archives at gmane (tinyurl.com/gitml) if you want to look for old reports and such10:30
cortana2 joined10:30
caseymcg left10:31
MestreLion the docs urls that gitinfo bot provide are from latest git, correct?10:31
tcurdt left10:31
`Assassin left10:31
charon right. i suspect they're even built from the master branch, but i'm too lazy to check10:33
gusnan joined10:35
iocor joined10:37
kpreid left10:37
selckin left10:38
cmyk_ joined10:39
cmyk_ left10:39
iocor left10:40
canton7 left10:42
canton7 joined10:42
solofight left10:42
bigkitty joined10:43
bigkitty hi10:43
enmand joined10:45
dhruvasagar left10:45
MestreLion programming question about building git from source: i've noticed there's no ./configure in tarball/repo. Which files are read when make configure is executed to generate it?10:45
Chib left10:46
Chibby joined10:46
MestreLion because the bug lies in the ./configure executable.. and I just realized git repo has none10:46
shruggar MestreLion: have you tried just running "make" without configure?10:46
dhruvasagar joined10:47
MestreLion not really shruggar... but I need to run ./configure to reproduce the bug10:47
or at least to properly document it10:47
enmand left10:48
fisted left10:48
shruggar MestreLion: there's a configure.ac, I expect that's related, but I've never been able to wrap my head around autoconf/automake10:48
there's also a config.mak.in10:49
m1sc MestreLion: details in INSTALL10:49
MestreLion it's a bug in the manpages... git-var fails to mention that the last fallback for editor, vi, is actually configurable at compile time10:49
cck left10:49
MestreLion in my distro source package there is a ./configure , in git repo there is not10:50
m1sc: I was reading it before coming here10:51
it only says "make configure"10:51
cmn that's because ./configure scripts aren't ever in source control10:51
eijk_ joined10:51
cmn it gets created by autoconf10:51
ndim Should not ever be in source control10:52
cmn right10:52
if it is, then it's a bug10:52
EugeneKay makes rude noises about autoconf10:52
arti_t left10:53
cmn you probably don't want to use it in git, anyway10:53
let the Makefile do it for youi10:53
arti_t joined10:53
ndim And the creation usually happens not by directly calling autoconf. Instead you call "autoreconf" (or, in some cases, a custom "autogen" or "bootstrap" script which is in source control).10:53
Can't remember what git uses off hand.10:54
eijk left10:54
fayimora left10:55
ChaoWang left10:55
MestreLion I'm just trying to determine who made the --with-editor configure option, upstream or distro10:56
bremner that doesn't sound like a git question10:58
necessarily10:58
thiago joined10:59
netiru joined11:00
netiru left11:00
MestreLion bremner: it is about giving git an accurate and detailed bug report11:01
bremner ok11:01
MestreLion instead of simply saying "man git-var does not document the actual behavior regarding editor choice"11:02
gitinfo the git-var manpage is available at http://jk.gs/git-var.html11:02
tingo joined11:02
bremner MestreLion: so, according to upstream, the way to build git (documented in INSTALL) is "make"11:04
FernandoBasso joined11:04
bremner or, you can read more about autoreconf in that same file11:05
notice that "make configure" is the first step.11:05
RaceCondition joined11:05
BiggFREE left11:05
cmyk_ joined11:06
fisted joined11:06
zdk left11:07
ph^ left11:08
Dave^| left11:08
sattu94 joined11:08
seanh joined11:09
libertyp2ime joined11:10
MestreLion ok, --with-editor is indeed provided by a ./configure created in a defautlt "make configure" run11:10
ehsan left11:10
ph^ joined11:10
MestreLion so yes, this is an upstream issue11:10
libertyp1ime left11:11
hyperair joined11:11
BiggFREE joined11:11
icdark left11:12
bremner grumbles about reading INSTALL for people, demands a raise.11:12
harish joined11:13
noisebleed joined11:13
noisebleed left11:13
noisebleed joined11:13
f0i left11:14
icdark joined11:14
fayimora joined11:14
fayimora left11:15
jceb left11:15
kaen left11:15
EugeneKay !refund11:16
gitinfo If you are not satisfied with git for whatever reason, you are entitled to a full refund of the purchase price, and are invited to use another VCS. Elsewhere.11:16
EugeneKay I move we give bremner a 50% raise, from $0.00 to $0.00.11:17
cmn overriding the default editor is provided by the build system11:17
and the default is correct in git-var.txt11:17
spaceonline joined11:18
dhruvasagar left11:19
flaguy48 left11:19
dhruvasagar joined11:19
flaguy48 joined11:19
spaceonline left11:21
jatt joined11:21
cooloney joined11:22
Lujeni joined11:23
iocor joined11:23
berserkr joined11:23
vervic left11:24
cooloney left11:24
BiggFREE left11:24
traviscj joined11:26
spaceonline joined11:27
armetiz joined11:27
seanh left11:27
Sitethief left11:29
psakrii joined11:29
pidus joined11:29
macrover left11:31
i42n joined11:31
RaceCondishun joined11:32
MestreLion cmn: true, but it should mention that this is configurable at build time11:33
vi being just a default11:33
cmn maybe, but "the default defaults to 'vi'" is a stupid sentence11:34
MestreLion or, as you said, git-var.txt should be changed by make to reflect the selected choice11:34
pidus left11:34
MestreLion I'll suggest this workaround sentence:11:34
This last fallback editor can be chosen at build-time using configure option --with-EDITOR, which is, by default, 'vi'.11:34
right after the "finally, 'vi'." part11:35
RaceCondition left11:36
RaceCondishunRaceCondition11:36
MestreLion is that a good phrasing?11:36
enmand joined11:38
MestreLion maybe add "hardcoded" as in "This last hardcoded fallback editor" ?11:38
cmn man git-var shouldn't talk about build options11:38
gitinfo the git-var manpage is available at http://jk.gs/git-var.html11:38
EugeneKay SethRobertson - apparently I started working on that ssh_config doc while drunk.... https://gist.github.com/191710211:39
MestreLion cmn: I could omit defailts like the name of the configure option, but what do you think about mentioning this is configurable at build time?11:40
sq-one left11:40
MestreLion is it worth it, at least until someone properly chang the build system to edit git-var.txt at build time/11:42
Quanteek left11:42
delight joined11:44
enmand_ joined11:44
enmand left11:44
cmn I don't see it being a big deal11:45
you can say that the fallback is configurable, possibly vi11:45
but you should be setting your own editor anyway11:45
and the default value isn't that important11:45
i42n left11:45
fanaticgeek joined11:45
i42n joined11:46
Cromulent joined11:46
arti_t left11:46
iamjarvo joined11:47
impr0bable joined11:48
erichynds joined11:48
erichynds left11:49
erichynds joined11:50
MestreLion i agree this is a very minor documentation issue11:50
scientes left11:50
MestreLion but it did puzzle me for a while, and I had to investigate quite a bit to find out what was going on11:50
a single clarification would have saved me (and possibly others who stumble on that) an hour or so11:51
digitalfiz joined11:53
IcePic why is getting the fallback "right" so important?11:54
I would understand if it was poorly documented how you get your own favourite editor used, but the fallback is .. the fallback.11:54
MestreLion not getting the fallback 'right', IcePic .. getting the *docs*right11:55
johnkpaul joined11:55
IcePic yes, so why would people spend time in docs to change the build-time fallback?11:55
builders, that is.11:55
RaceCondition left11:55
MestreLion i don't want to *change* it...11:55
the_cybersphinx joined11:55
MestreLion i was just puzzled *where* git was choosing my editor, since I don't have any of the documented vars set11:55
cannonball joined11:56
d3vic3 left11:56
jast yeah, I think the question is: who would benefit from having that documented? only someone who wants to change it. how many such people are there? :}11:56
fanaticgeek left11:56
jast I'm not saying that I oppose a doc patch11:56
MestreLion and it was supposed to open 'vi' in this case, but it was opening nano instead11:56
EugeneKay You know, for the amount of time you've <s>wasted</s> spent talking about it, you could submit a patch to the mailing list.11:56
MestreLion I am doing that, EugeneKay ..11:57
Just discussing what a proper phrasing would be11:57
cybersphinx left11:58
jast [...] and then finally _vi_ (or whichever editor was set at build time using DEFAULT_EDITOR or --with-editor).11:58
just an idea11:58
gitinfo set mode: +v11:59
sajbar hey there, is there a way to modify post-recieve hook so it only triggers on certain branches?11:59
IcePic I'm just wondering, if I am a builder and set Eclipse (or whatever) as the last resort and dont communicate that to my package users, would that text really help?11:59
MestreLion jast: cmn suggested a manpage should not discuss build options... so I guess i'll go with: "... `$VISUAL`, then `$EDITOR`, and then finally, a hardcoded fallback editor set at build time, by default 'vi'." - How about that?11:59
jast IcePic: sure, but then again no variant would help in that case12:00
MestreLion yes it would IcePic ... because git-var is the only place in docs that document Git's search order for editor12:00
IcePic if I get nano, which isnt my EDITOR nor VISUAL, and its not vi, what use is the manpage for me as a user of said buidl-time-changed git12:00
EugeneKay sajbar - of course. Loop through the stdin and do an if [] check on the ref-name.12:00
jast we can't really patch the manpage at build time because manpages are often generated completely separately12:00
MestreLion IcePic: I was puzzled because i don't have ANY of the env vars set, nor core.editor.. so *where* git was reading nano from? that's a legitmate user question, not just builder's12:02
cccaldas joined12:02
Kenjin joined12:02
Kenjin hello12:02
IcePic MestreLion: and the last manpage "quote" you suggested would not help you with that either.12:03
so I guess i'll go with: "... `$VISUAL`, then `$EDITOR`, and then finally, a hardcoded fallback editor set at build time, by default 'vi'.12:03
that one.12:03
arti_t joined12:03
arietis joined12:03
MestreLion of course it would... I would know that nano (or /usr/bin/editor) was proabaly picked as the hardcoded fallback12:04
which, for my distro, was not the default 'vi'...12:04
envi_ left12:04
IcePic how would that differ from your experience of seeing nano today?12:04
MestreLion mistery solved in 5 minutes instead of 5012:04
eno left12:04
IcePic something wants nano started <- thats all you really know.12:04
in both cases12:04
MestreLion it would differ as I would understand what is going on12:05
CannedCorn joined12:05
eno joined12:06
MestreLion IcePic: my point is simply that it was *confusing* (and surprising) to see nano poping up12:07
tingo left12:07
jast my suggestion is don't spend too much time debating the wording before submitting it. resending patches is cheap. if it turns out the maintainer is violently opposed to accepting any such change at all, you'll end up wasting much more time if you polish it beforehand. ;)12:07
yizumi_ left12:07
MestreLion good point jast12:07
jast just make it 'good enough'12:07
bigkitty hi all12:08
iamjarvo left12:08
cccaldas left12:08
cmn !hi12:09
gitinfo [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice.12:09
mklappstuhl left12:09
hyperair left12:10
RaceCondition joined12:11
cccaldas joined12:12
boo1 joined12:13
Ryback_ joined12:13
griotspeak joined12:14
dr0id joined12:14
soulcake left12:17
boo1 left12:18
babilen joined12:18
bigkitty left12:19
arti_t left12:19
bigkitty joined12:19
dv310p3r left12:20
arti_t joined12:20
MestreLion and guys, sorry about being what can be seen as picky. I was trying to help others that may stumble on this too, and may get puzzled like I was. Maybe a doc patch may not help much, but i think it would at least lead users to the right direction, ie, check the build options used in his package. Sometimes just knowing that this fallback is configurable is enough for him.12:20
mklappstuhl joined12:22
CannedCorn hey guys, how would you clone all branches12:24
of a repo12:24
MestreLion CannedCorn: a remote repo?12:24
CannedCorn: when you clone a repo, you already get all its branches12:25
jast CannedCorn: by default all branches *are* cloned, they just don't automatically get created as local branches in the target repo (they do show up in git branch -r)12:25
berserkr left12:25
kryl99 joined12:26
soc42 hi #git12:26
are there any security issues (flaws or known vulnerabilites) while using git?12:27
angelsl joined12:28
CannedCorn how do i make them show up in git branches12:28
i.e. have them locally12:28
arti_t left12:29
arti_t joined12:29
beautifulmind left12:29
Kenjin is it possible to do a partial cherry-pick. Something along the lines off add -p ?12:31
MestreLion CannedCorn: if all you want is to list them, use branch -a (shows all branches, local and remote)12:31
marthinal joined12:31
mfridh left12:31
SethRobertson soc42: nop12:31
MestreLion CannedCorn: but there is little point in locally creating *all* remote branches. Create only the ones you will actually work on12:32
soc42 hi SethRobertson12:32
mandric joined12:32
jast CannedCorn: in general they get created automatically when you do "git checkout <name of branch>"12:32
SethRobertson Kenjin: Yes, run with -n and then you can evict from the index and add -p.12:32
d0k joined12:33
CannedCorn yeah, ok12:33
martinjlowm left12:33
CannedCorn there are 100s of branches on this project and i want to be able to switch to them all without having internet connectivity so that isn't going to work :-(12:34
oh well12:34
tommyvyo joined12:34
SethRobertson Um, yes it is12:34
MestreLion CannedCorn: you don't need internet connectivity12:34
SethRobertson You already have a copy of all bits. It doesn't go anywhere when it createa a local branch12:34
jast CannedCorn: the contents are cloned automatically. "git checkout" just makes them visible as a local branch, too.12:34
MestreLion CannedCorn: a "remote branch" is a *local* name that you have in your cloned repo12:35
jast just try it, you'll see12:35
Kenjin SethRobertson: cool thanks12:35
jast it happens way too fast for any connection thing to be involved :)12:35
let's test the newest change to the bot...12:36
jasttest joined12:37
gitinfo left12:37
jasttest hi there!12:37
jast well that didn't work. :}12:37
CannedCorn MestreLion SethRobertson cool, thanks12:37
jasttest left12:37
MestreLion CannedCorn: think of a remote branch as just a "tag" that points to a given commit. A commit you have locally because you cloned the repo. Once you clone a repo, you have all the data you need to work, no more internet required12:37
jast interestingly the bot is still running, just not connected anymore12:37
gitinfo joined12:38
ChanServ set mode: +o12:38
SethRobertson !branch12:38
Dave^| joined12:38
SethRobertson ?12:38
jast it takes a while to sync, remember?12:38
gitinfo A branch and a tag are just convenient ways of spelling the name of a particular commit. A commit represents a specific set of files and the history of all commits which came before it, and the SHA-1 hash tag official name provides cryptographic assurance of the lineage of a particular commit (and thus branch or tag). A branch's reference may change. A tag usually doesn't.12:38
SethRobertson Not in the slightest12:38
jast oh, it wasn't actually running. that was just the keepalive shell script. waits a bit and then restarts it.12:39
jasttest joined12:39
jasttest hi there. testing the bot and stuff.12:39
gitinfo jasttest: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git a>nd this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.12:39
jasttest hi there. should not trigger again.12:39
MestreLion CannedCorn: so the remote branches are just names that reflect the current status of the server remote repo the last time you fetched from it12:39
jasttest excellent.12:40
jasttest left12:40
SethRobertson jast: "a>nd this channel"?12:40
mfridh joined12:40
jast whoops12:40
that must have crept in while copying the line from one terminal to another12:40
amigojapan joined12:41
jast now, did I have a command for rehashing the config file?12:41
yes I did!12:41
cortana2 left12:41
jast .rehash12:41
gitinfo jast: Okay.12:41
jast fixed :}12:41
martinjlowm-lptp left12:41
seanh joined12:41
seanh left12:42
seanh joined12:43
arti_t left12:43
d3vic3 joined12:43
arti_t joined12:44
beautifulmind joined12:45
jargon- left12:45
cccaldas left12:45
harshpb left12:45
cccaldas joined12:45
thiago left12:46
memoryleak joined12:47
reels joined12:47
neurodrone joined12:49
neurodrone left12:49
neurodrone joined12:49
schlumpi left12:50
tatsuya_o left12:50
tatsuya_o joined12:51
vmassuchetto joined12:52
TheDudeKnows joined12:52
jargon- joined12:52
Cromulent left12:52
vmassuchetto How can I 'force' a push to be made again? I want a 'post-update' script that reads branches to be executed again, but for another branch this time.12:53
arti_t left12:54
SethRobertson make a change12:54
ralf_e joined12:54
vmassuchetto SethRobertson, yeah... but I was wondering if there's something else that could be done.12:55
SethRobertson Once the bits have been transferred and the branch pointed updated remotely, that is it.12:55
schlumpi joined12:56
arti_t joined12:57
dzonder joined12:58
dpino left12:58
marcogmonteiro left12:58
marcogmonteiro joined12:59
as3llus left12:59
jatt left12:59
vmassuchetto Is there a way to make git to get the remote servers from a commited file? Like it's done with files on .gitignore?12:59
psakrii left13:00
FauxFaux vmassuchetto: I don't understand your question.13:00
SethRobertson I don't either, but the answer is no13:00
wroathe joined13:00
marcogmonteiro left13:00
as3llus joined13:00
vmassuchetto FauxFaux, Like a '.gitconfig' file to be at the root of the repository with the remote servers, branches and so...13:00
The information that currently goes into .git/config13:01
AaronMT joined13:01
FauxFaux You want the .gitignore not to be part of the repository, such that it's not committed or transfered around with clone? man gitignore "excludes".13:01
gitinfo the gitignore manpage is available at http://jk.gs/gitignore.html13:01
FauxFaux Uh, "exclude". I always get that wrong. Causes so much confusion.13:01
vmassuchetto Faux. No.13:02
FauxFaux Explain further!13:02
seanh left13:03
jsoa joined13:03
kryl99 left13:03
zoran119 joined13:03
vmassuchetto FauxFaux, I want a file to distribute to other developers that tells their local gits where's the information that I'm putting now into '.git/config' file related to '[branch]' and '[remote]' options.13:03
jast we don't have any such thing at this time13:03
FauxFaux What he said.13:03
hyperair joined13:04
zoran119_ left13:04
vmassuchetto Ok.... But would it be useful?13:04
jast it would raise a few hairy questions, too13:04
for example: what if that file clashes with .git/config?13:04
personally I wouldn't find it terribly useful13:04
vmassuchetto jast, Yeah.. Some sort of precedence would be needed.13:05
FauxFaux git config was going to be getting #include at some recent point, wasn't it, so I can start versioning my .gitconfig again.13:05
seanh joined13:05
jast yeah, I think I saw someone working on that13:05
vmassuchetto jast, Nice. If you have a link or anything would be nice.13:06
soc42 left13:06
jast I was talking about includes13:06
shruggar left13:06
jast that wouldn't really do anything for your situation13:06
ThomasLocke left13:06
TeckniX joined13:06
chilversc_ joined13:07
FauxFaux Well, you could have a template of #include "../.vmassuchettoattributes" for your .gitconfig.13:07
arti_t left13:07
Guest58816 left13:07
Guest58816 joined13:07
Guest58816UukGoblin13:08
vmassuchetto FauxFaux, Ok. I'll try to get more information about it.13:08
vervic joined13:08
vmassuchetto Thanks guys.13:08
vervic left13:08
dv310p3r joined13:11
thiago joined13:11
Kuba left13:11
empity joined13:11
john2496 joined13:12
mikewintermute joined13:13
glennpratt joined13:14
nenjordi joined13:14
iocor left13:14
stkrzysiak joined13:15
Bass10 joined13:16
vmassuchetto left13:16
ceej joined13:16
n1x joined13:16
cortana2 joined13:17
pidus joined13:17
williamcotton joined13:17
diegoviola left13:17
jeffisabelle joined13:17
Vortex34 joined13:18
bitkiller joined13:18
bLUEEE joined13:19
gitinfo set mode: +v13:19
gitinfo set mode: +v13:19
bLUEEE hi there13:19
gitinfo bLUEEE: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.13:19
hyperair left13:19
hyperair joined13:19
teotwaki left13:20
jast it works! \o/13:20
Vortex35 left13:21
newbie1 joined13:22
EugeneKay high time.13:22
bLUEEE small question, i pushed everything to the origin. but then i edited .gitignore file and pushed again. i was thinking that the origin would actually ignore the newly added file.. but it didnt.. how can i do that ?13:23
EugeneKay bLUEEE - !untrack13:23
gitinfo bLUEEE: to stop git from tracking a file, without deleting the file, use "git rm --cached <file>"13:23
bLUEEE thanks13:23
EugeneKay gitignore ignores only untrackd files. You have to remove it from git in order to untrack it. ;-)13:23
s/untrack/ignore13:23
newbie1 left13:23
bLUEEE got it !13:23
EugeneKay You can also force addition of an ignored file with git add -f13:24
Sigma joined13:24
teotwaki joined13:24
mgpcoe joined13:25
bLUEEE oh man, i deleted the file accidently13:25
EugeneKay man git-checkout13:25
gitinfo the git-checkout manpage is available at http://jk.gs/git-checkout.html13:25
EugeneKay git checkout HEAD -- foo.txt will undisappear it13:26
prgmctan joined13:26
fanaticgeek joined13:27
prgmctan anyone ever use git to version whole database sql files? let's say you have development, staging, and production databases13:28
EugeneKay makes a rude noise13:28
jast prgmctan: you're probably better off using the snapshot/dump feature of your database13:28
EugeneKay Datatbase schema, or database data?13:28
jast merging is pointless with database images, anyway13:28
Zenith77 joined13:28
MacGyverNL I have, though I have only used it as a secondary backup solution w/ history.13:28
jast all you need is snapshots13:29
cakehero joined13:29
eno left13:29
EugeneKay The Daily WTF did a decent piece on DB schema changes and updates about a week ago13:29
prgmctan jast: ok, just a thought that popped into my head lol13:29
MacGyverNL Intended for recovery attempts if all else fails.13:29
jast prgmctan: that thought has assaulted a few other people before ;)13:29
EugeneKay You can use git to store backups(it is fundamentally a content-addressable data store), but it's not really a good idea.13:29
prgmctan EugeneKay: I was talking about the schema13:29
EugeneKay prgmctan - look up TDWTF's piece on doing it. git is a good place to store your schema changes(alongside your code, as an upgrade binary or such), but there are many pitfalls to look out for.13:30
prgmctan I heard about that, basically using git and overwriting your backup every time13:30
eno joined13:30
johnkpaul left13:30
krz left13:31
EugeneKay The general problem is that you need to handle changes gracefully(no dropping tables!) and making the update script work on "desired state", rather than a process.13:31
The first is usually easy-to-middling, the second if difficult.13:31
sobel joined13:31
EugeneKay s/if/is13:31
gavin_huang left13:32
bLUEEE EugeneKay, all good - thanks !13:32
prgmctan right13:32
gavin_huang joined13:32
prgmctan EugeneKay: you have a link to that article?13:33
EugeneKay !googl the daily wtf database upgrade13:33
Oh wait, gitinfo doesn't even do that13:33
jast I could add it, but then I'd have to think about how to do async HTTP requests13:33
I've been trying to avoid that :)13:33
prgmctan I googled that, but I wasn't sure which one you were refering to13:34
EugeneKay It was dated a week or two ago13:34
roggStrogg13:35
prgmctan does 'Database Changes Done Right' sound about right?13:35
EugeneKay Yup13:35
prgmctan cool, thanks13:35
eno left13:36
EugeneKay jast - how are you doing the main loop? Can you add an outgoing queue somewhere that it'll read through?13:36
xiangfu left13:36
jast EugeneKay: I use POE. there's an HTTP client component for it. just never bothered looking properly before.13:37
memoryleak left13:37
eno joined13:38
EugeneKay Apathy is a hell of a drug13:39
philips left13:39
philips joined13:39
jast can't get enough of it :}13:39
philips left13:39
philips joined13:39
yoklov joined13:40
empity left13:41
chrisgeorge joined13:42
shruggar joined13:42
Targen_ left13:42
sebrock joined13:43
OOPMan joined13:44
d3vic3 left13:44
ralf_e left13:44
nenjordi left13:46
Quanteek joined13:47
boonrumor joined13:47
bLUEEEE joined13:47
gitinfo set mode: +v13:47
bLUEEEE say that a colleague updates the origin and before i start working can i see whats different between my local files and the origin ?13:48
stkrzysiak left13:48
Maccer left13:48
beatak joined13:49
vervic joined13:49
Maccer joined13:49
sajbar bLUEEEE: yes, git fetch origin and then you can diff your working copy with the origins/master or what ever your branch is called.13:50
and now off work13:50
lyddonb joined13:50
dddk1 joined13:51
bLUEEE left13:51
canton7 left13:51
jceb joined13:51
dddk1 left13:51
gavin_huang left13:52
vervic left13:52
Vampire0_Vampire013:52
L42y left13:53
OOPMan left13:54
Orbitrix left13:54
Evanescence joined13:54
ology joined13:55
juanfer joined13:55
canton7 joined13:55
canton7 left13:56
ralf_e joined13:56
eno left13:56
snearch joined13:57
DofLeFou left13:58
cccaldas left13:58
weiyang joined13:58
eno joined13:59
gavin_huang joined14:00
Orbitrix joined14:02
alansaul joined14:02
i42n left14:02
i42n joined14:02
kennethreitz left14:04
EvanR joined14:05
surfdue left14:05
EvanRGuest5464414:05
pandeiro joined14:06
surfdue joined14:06
L42y joined14:06
krz joined14:07
betovar left14:07
iamjarvo joined14:07
andres_fandres14:09
coredumb left14:09
cccaldas joined14:12
frogonwheels left14:13
iocor joined14:13
marcogmonteiro joined14:13
Malar joined14:14
wildalaskan joined14:14
dannyanderson joined14:16
ehsan joined14:16
craigntammy joined14:17
canton7 joined14:17
stodan left14:17
canton7 left14:18
gldn left14:19
mneorr joined14:19
tommcdo joined14:19
yoklov left14:20
davpoind joined14:20
xsbeats joined14:21
eno left14:21
yoklov joined14:21
sattu94 left14:23
kevwil joined14:23
qwertz_ git remote -a still shows remote branches that are gone. how do i tell git that they're gone? git fetch doesn't do the job apparently14:23
tommcdo hey all, i have a question that's a little involved, and i'm not well versed in git terminology, so please bear with me...14:23
jast qwertz_: git remote prune14:23
tommcdo: you're not the first, don't worry :)14:23
tommcdo i want to use different git repos on one project in a nested fashion14:24
adman65 joined14:24
twisted` joined14:24
adman65 left14:24
adman65 joined14:24
eno joined14:25
tommcdo here's how i'm actually doing it. i'm working on a PHP site using a framework (Kohana), and there's a 'modules' directory somewhere inside the codebase. i'm using the modules directory to include code that i use for lots of different sites, and i want to be able to put it into its own repository14:25
jast tommcdo: !subproj14:25
gitinfo tommcdo: [!subprojects] So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely seperate. Otherwise your best options are "!submodule" "!gitslave" and "!subtree" Try typing those commands into this IRC channel.14:25
jast hope that helps :)14:25
enmand joined14:25
Guest54644 left14:26
jast if not, just complain loudly14:26
KaZeR_W joined14:26
qwertz_ jast, thanks a lot.14:26
KaZeR_W hi there14:26
gitinfo KaZeR_W: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.14:26
Evanescence left14:27
enmand_ left14:27
cccaldas left14:27
KaZeR_W i'm having issue with the submodule of a project. one one host, everything seems pushed, but on the other, i'm getting "fatal: reference is not a tree"14:27
tommcdo jast: looks like one of the latter suggestions might do the trick14:27
!submodule14:27
gitinfo git-submodule is ideal to add subsidiary git repositories to a git superproject when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes upstream. See http://book.git-scm.com/5_submodules.html14:27
shruggar lots of submodule-related queries recently. Did someone suddenly decide that submodules were a good idea and tell everyone to start using them?14:28
jast hey, I do like submodules :)14:29
bLUEEEE left14:29
oriba joined14:29
tommcdo shruggar: i think this is a really common thing in web dev. i work for an agency making lots of sites, and let's face it, all sites need the same stuff. i want one directory for my common stuff to be kept in its own repository (but i still want that stuff to be in each site's repositorty)14:29
jast KaZeR_W: what command gave you that?14:29
thiago left14:29
jceb left14:30
shruggar I've just always preferred subtree merge14:30
it's not perfect, but it's conceptually better than submodules, imo14:30
cccaldas joined14:30
krisfrem1n left14:30
yoklov left14:30
krisfremen joined14:31
neurodrone left14:31
KaZeR_W jast, git submodule --init on another host (where the use of the submodule is new)14:31
mfridh left14:32
tommcdo welp, the more i read about this the more complicated it looks like it's gonna be.14:34
timoxley left14:34
jast tommcdo: try one of the other options. different ones appeal to different people and work better for different situations.14:34
KaZeR_W: might just need to run 'git submodule update' there14:34
mfridh joined14:36
guampa joined14:36
arti_t joined14:36
tommcdo jast: thanks, i'll look into a few different options14:37
Fullmoon left14:37
fly9 joined14:37
tatsuya_o left14:37
pidus left14:37
jast tommcdo: namely !subtree and !gitslave14:37
gitinfo tommcdo: The git subtree merge method is ideal to incorporate a subsidiary git repositories directly in to single git repository with "unified" git history, where you only need to pull changes in from external sources not contribute your own changes back (which if technically possible is at least difficult). See http://progit.org/book/ch6-7.html Type "!subtree_alt" for more options14:37
tommcdo: gitslave (http://gitslave.sf.net) is useful to add subsidiary git repositories to a git superproject when you control and develop on the subprojects at more or less the same time as the superproject, and furthermore when you typically want to tag, branch, push, pull, etc. all repositories at the same time.14:37
tatsuya_o joined14:37
jceb joined14:38
achadwick joined14:38
shruggar look at jast, wielding gitinfo with multiple strikes in the blink of an eye, like some sort of help ninja14:38
jast I'm just that magical :}14:39
KaZeR_W jast, then i get fatal: reference is not a tree14:39
Cromulent joined14:39
freimatz left14:39
iocor left14:39
jast KaZeR_W: perhaps you need both rolled into one: git submodule update --init14:39
if that doesn't work, something is broken in the submodule config14:39
mandric left14:39
iocor joined14:40
KaZeR_W jast, same thing (fatal: reference is not a tree)14:40
kukks joined14:40
KaZeR_W any tip about how i could solve that ?14:40
jast KaZeR_W: make sure the submodule URL in .gitmodules is correct and accessible to you14:41
KaZeR_W jast, yep the issue is on the push side. i took the url from .gitmodules, cloned it somewhere else on host #2 and the last commit is missing14:43
arti_t left14:43
eno left14:43
KaZeR_W but on host#1, if i push from the super project, or the module, it says i'm up to date, and git log in the submodule does show the commit14:43
jast I suspect you don't completely understand how submodules are supposed to work14:43
arti_t joined14:43
fanaticgeek left14:44
jast I really need to write an article about that14:44
Fhsrap joined14:44
KaZeR_W jast, i suspect you might be right :)14:44
diegoviola joined14:44
KaZeR_W the thing is : i committed from the submodule, i added the submodule path to the superproject commit, committed, pushed14:44
what did i miss?14:44
eno joined14:45
jast you shouldn't commit from the submodule14:45
within the submodule all you should do is look14:45
because 'submodule update' detaches HEAD inside the submodule, so new commits you make there don't belong to any branch14:46
Sigma left14:47
jast this is the slightly annoying thing about submodules :)14:47
tommcdo jast (and shruggar): i think subtree is the way to go for me. gitslave looks a little better, but i don't want to install another program. thanks a lot, guys14:47
KaZeR_W mmm indeed. so you shouldn't fix issues from the submodules. that differs a bit from svn14:48
jast tommcdo: git-subtree hasn't been added to core git yet, but it will be soonish14:48
gchristensengr[a]hamc14:48
shibayu36 left14:48
oehman joined14:49
shruggar git-subtree? I was just talking about -s subtree14:49
jast oh, right14:49
shruggar tell me more14:49
tommcdo shruggar: is that any different from the description that gitinfo gave?14:49
jast KaZeR_W: the right thing to do: have separate clone of submodule, make changes/commit/push there. then, in the actual submodule, checkout the branch and pull. then do a 'git add path/to/submodule' in the superproject and commit/push (that changes the revision of the submodule).14:49
shruggar tommcdo: I do not believe so14:49
jast I may have been talking about !subtree_alt14:49
gitinfo The git subtree merge method is hard to export changes from.. https://github.com/apenwarr/git-subtree provides another method which appears to be easier to export changes from. Also as a no-change-exported method, see https://metacpan.org/module/git-stitch-repo which claims to generate a unified history instead of merged branches.14:49
yshh joined14:50
KaZeR_W thanks jast, i'll do that way from now.14:50
how can i fix my current tree, though?14:50
gavin_huang left14:50
jast is it just one commit that's missing?14:50
tommcdo shruggar: can you give me a "quick start" guide to get a subtree merge going?14:51
oehman If I made a local commit and want to go back to uncommited state to add more changes.. how do I do this?14:51
shruggar ah.. I tend to avoid making changes directly in a subtree unless the change is not applicable to upstream14:51
jast oehman: add your changes, stage them, git commit --amend14:51
oehman thx14:51
jast shruggar: makes sense, too14:51
shruggar tommcdo: personally, I set things up the way I want them, then git merge -s ours with the upstream repository. After that, -s subtree works via magic14:51
Sigma joined14:52
shruggar "set things up the way I want them" meaning "copy files from the subproject over manually and add them"14:52
cakehero left14:53
hsttlrjeff joined14:53
Destos joined14:53
KaZeR_W jast, yes, only one14:53
shruggar -s ours means "record that a merge took place, assume I am telling the truth and don't do anything merge-y yourself, git"14:53
mandric joined14:53
tommcdo shruggar: you're throwing some words at me that i'm not familiar with. i've so far only been using pull, commit, and push lol14:54
MANCHUCK joined14:54
shruggar actually, come to think of it, I git merge -s ours, then git commit --amend after setting things up how I want them14:54
fanaticgeek joined14:54
tommcdo at which point do you actually specify where the remote repository for the subtree lives?14:55
shruggar tommcdo: oh, I'd done that already...14:55
Destos left14:55
Destos joined14:55
dr0id left14:55
EvanR joined14:56
EvanR bah14:56
shruggar tommcdo: 1) git remote add mylibrary path/to/mylibrary/.git 2) git merge -s ours mylibrary/master 3) cp /path/to/mylibrary where/I/want/it 4) git add where/I/want/it 5) git commit --amend14:56
EvanR --git-dir=/foo/bar/baz always results in14:56
shruggar there's the simplified overview14:56
Sigma left14:56
EvanR fatal: Not a git repository: '/foo/bar/baz'14:56
tommcdo shruggar: all of these commands would be run from the base directory of the main project (the one that wants to include the subtree), right?14:58
thiago joined14:59
shruggar tommcdo: none of them need to14:59
aldodelgado joined14:59
tommcdo but they would at least be done from somewhere within the main project?14:59
shruggar yes14:59
legnaleurc joined15:00
shruggar unless you set GIT_DIR and GIT_WORK_TREE :)15:00
tommcdo this leads to another thing i don't have a solid grasp on... the identifiers, or whatever they're called. in this case, what you've called "mylibrary", and what for my projects i always call "origin" (and i'm not sure why)15:01
neurodrone joined15:01
neurodrone left15:01
neurodrone joined15:01
mritz joined15:01
shruggar that's called a "remote"15:01
stkrzysiak joined15:01
shruggar it's a local alias for a remote repository, so you don't need to type [email@hidden.address] all the time15:01
yoklov joined15:02
pdtpatr1ck left15:02
shruggar once defined, a remote also keeps track of remote branches (via "remote-tracking branches"), which are useful to have local copies of15:02
mikepack joined15:02
tommcdo okay, so after i've done all of that, and i run pull and push, etc, where/when should i have to specify "mylibrary" (as oppoised to "origin", which i've set as my default remote)15:03
jargon- left15:03
alx- joined15:03
alansaul left15:04
ojimac joined15:04
eno left15:04
shruggar this workflow doesn't involve pushes to mylibrary, and though I don't like "pull" myself: git pull -s subtree mylibrary master15:05
tommcdo shruggar: what don't you like about pull? for my case, we have multiple developers working on the same project, so as far as i can tell, it's necessary15:06
cmyk_ left15:06
eno joined15:06
arvind_khadri left15:07
Fullmoon joined15:07
shruggar "pull" is chaotic, equivalent to saying "just put some changes into my worktree, I don't care what." (for most workflows)15:07
tommcdo what's the alternative?15:07
beautifulmind left15:08
dpino joined15:08
ndim fetch first, then manually merge what you want to merge.15:08
shruggar only merging in one direction into the master (or "further-upstream") branch, and in general only performing a merge after you've looked at changes and determined that you want them15:08
people who use "pull" usually merge for no good reason, and I dislike that15:09
tommcdo oh. in my workflow (web dev), it's basically always vital to get everything. we each have our own copy of the site, and without each of us having everything, some things just won't work15:09
linusoleander joined15:10
shruggar what things won't work?15:10
tommcdo well, one guy might be working on a database model class, and without the changes he implements, my code will start doing the wrong things, etc15:12
shruggar I'm also in web-dev, with each developer on their own copy. Because of that, we only need to merge when we're done working15:12
tommcdo well, define "done working"15:12
end of day? end of project?15:12
coredumb joined15:12
shruggar end of topic15:12
cannonball In our dev environment, each dev has their own db and a script to update table schemas when a merge contains new model definitions.15:13
tommcdo i can't tell if you're defining it as that, or telling me that you don't want to talk about this anymore :P15:13
cannonball it's not an auto update though, we have to manually run said script.15:13
shruggar defining it as that :)15:13
tommcdo then that's basically the same flow. we don't use pull all the time, just when we need to pull :D15:14
shruggar if one person is working on a model, and another person is working on the use of that model, one of you (or both working together) defines the interface. One of you works on using the interfacing, the other works on making the interface do something other than spit out test data15:14
jargon- joined15:14
kevwil left15:14
kermit left15:15
tommcdo shruggar: yeah, we could probably use some better standards around here to make such things work more fluidly15:15
dcarper left15:15
eno left15:15
tommcdo cannonball: do you have a general script that checks for database structure changes, or do you just write little SQL files that do the work? (if the former, i'd be very interested!)15:15
erickr left15:16
kevwil joined15:16
shruggar tommcdo: http://thedailywtf.com/Articles/Database-Changes-Done-Right.aspx15:16
akiress left15:17
john_anderson joined15:17
linusoleander left15:17
tommcdo thanks, shruggar15:17
eno joined15:17
shruggar tommcdo: that's my way of saying "don't diff your databases /instead/ of writing migrations"15:18
write migrations, diff databases only when finding out wtf15:18
qwertz_ oh wow. merging can fail big time if the same files got heavily modify in both branches.15:18
cannonball latter. Each ALTER TABLE or CREATE TABLE or whatever is housed a new .sql file. The script uses yaml to keep track of which .sql files have been processed, looks for new ones, and process them in alphabetical order. the dev which committed the change is supposed to gen new model files as part of their commit, so this should bring my schema inline with the original committer's schema and newly checked out models.15:18
Cromulent left15:19
eightyeight left15:19
jatt joined15:19
tommcdo shruggar: that's good advice. i just wanted to be lazy if i could :P15:19
adman65 left15:19
eightyeight joined15:19
airborn joined15:19
tommcdo cannonball: i've been thinking if implementing a system like that for a while, just haven't decided on the right structure/toolset15:19
shruggar tommcdo: programming is the highest form of laziness15:19
adman65 joined15:20
adman65 hey15:20
shruggar tommcdo: personally, I steal from rails15:20
adman65 is there a command I can excute to determine if a remote branch is in sync with a local branch?15:20
FauxFaux http://code.google.com/p/dbdeploy/ (or http://www.liquibase.org/ ¬_¬)15:20
linusoleander joined15:20
cannonball tommcdo: It's all perl for us.15:21
shruggar adman65: git log @{u}…HEAD if that returns nothing, you're good15:21
RaceCondishun joined15:21
reels_ joined15:21
RaceCondition left15:21
RaceCondishunRaceCondition15:21
amirite left15:21
thiago left15:22
jsoa left15:22
Fullmoon left15:23
tommcdo cannonball: glorious perl.15:23
cannonball adman65: If you do just a 'git fetch', then 'git checkout' will show relationship of current branch to the remote branch.15:23
thiago joined15:24
reels left15:24
cannonball I don't know of an all in one way of doing it.15:24
pdtpatr1ck joined15:24
adman65 cannonball: more spefically I am looking for a boolean value that says is my local branch in sync with a remote branch15:24
griotspeak left15:24
adman65 I think git diff head origin/master --exit-code does the trick15:24
williamcotton left15:25
dpino left15:25
dreiss joined15:26
mandric left15:26
ndim My bash prompt tells me that.15:26
i42n left15:27
cannonball ndim: what does PS1 look like to do that?15:27
fanaticgeek left15:27
tommcdo cannonball: have a $? in there. you can always echo $? to see the last return status15:27
arti_t left15:27
ndim cannonball: It contains a part '$(__git_ps1 " | git %s")'15:28
FauxFaux adman65: git diff HEAD @{u} --exit-code # perhaps.15:28
lyddonb left15:29
adman65 FauxFaux: what is @{u}15:29
FauxFaux adman65: man git rev-pares15:29
gitinfo adman65: the git manpage is available at http://jk.gs/git.html15:29
ndim cannonball: There is also a bunch of GIT_PS1_* env vars to control the __git_ps1 output15:29
FauxFaux adman65: man git rev-parse15:29
gitinfo adman65: the git-rev-parse manpage is available at http://jk.gs/git-rev-parse.html15:29
cannonball Hmmm, I have $(__git_ps1 " (%s)") By doing 'git BRANCHNAME', it shows the relationship to the remote?15:29
edwardbc joined15:29
cannonball it doesn't for me. Maybe I'm using an older version compared to you?15:30
ndim cannonball: GIT_PS1_SHOWUPSTREAM=yes15:30
cannonball OH NICE!15:30
haarg cannonball: https://github.com/gitster/git/blob/master/contrib/completion/git-completion.bash#L4615:31
there are other vars you can set as well15:31
ehsan left15:31
cannonball yah, I'm reading the git bash_completion file.15:31
Lots of things I didn't know about it.15:31
ehsan joined15:31
mister_m joined15:32
prgmctan left15:32
khmarbaise joined15:32
haarg be aware that GIT_PS1_SHOWDIRTYSTATE and GIT_PS1_SHOWUNTRACKEDFILES can cause it to be really slow on large repos15:32
fanaticgeek joined15:33
cannonball Our repo is on an nfs homedir, so yeah, anything like that would be painful. But I set GIT_PS1_SHOWUPSTREAM to auto and it works great. Thanks!15:34
surfdue left15:34
ndim "really slow" can mean 30+s for a "cd linux" until the cache is warm, and then another 1 or 2 seconds for every prompt.15:34
dfr|mac joined15:35
surfdue joined15:35
cmyk_ joined15:36
lyddonb joined15:36
canton7 joined15:36
edwardbc_ joined15:36
cmyk_ left15:37
eno left15:37
edwardbc left15:37
mritz left15:38
dpino joined15:38
eno joined15:39
arti_t joined15:40
matthiaskrgr left15:40
maletor joined15:40
Guest16470[mbm]15:40
maletor left15:40
anderse_ left15:40
necromancer ugh...git is such a blueballer15:41
i'm all like OMG I LOST EVERYTHING but then i figure out where it is15:41
matthiaskrgr joined15:41
necromancer i mean i love it because i don't lose shit but it freaks me out sometimes ;)15:41
jangell left15:41
shruggar it's hard to lose things in git without saying "git, please lose my things"15:41
FauxFaux Blueballer, as in, prevents you having sex? I've actually found the ~10% productivity increase from using git has left me with 10% more of my day to have sex with my waifu.15:41
Fullmoon joined15:42
shruggar chattr -R +euphamism git15:43
aeontech left15:45
necromancer the fact that someone who understands git is also capable of snagging a woman blows my mind15:45
;-)15:45
and it also gives me hope15:45
shruggar if it helps, my wife probably wishes I wouldn't talk about directed acyclic graphs in bed15:45
Quanteek left15:46
JohnBat26 left15:46
P0TaT0 joined15:46
bLUEE joined15:47
gitinfo set mode: +v15:47
EricInBNE left15:47
soulcake joined15:47
bLUEE hi there.. i am getting ... (master|REBASE -i)15:47
gitinfo bLUEE: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.15:47
weiyang left15:47
bLUEE how do i remove rebase ?/15:47
ajt left15:47
shruggar bLUEE: in what? your PS1?15:48
_ikke_ bLUEE: You create a branch called REBASE15:48
ajt joined15:48
_ikke_ bLUEE: what does git branch -a return?15:48
bLUEE master, remotes/origin/master15:48
Womkes left15:48
bLUEE i guess i could delete the remotes/origin/master ?15:49
_ikke_ bLUEE: You probably don't want that15:49
bLUEE ah, how do i remove it ?15:50
Quanteek joined15:50
Targen joined15:50
shruggar I still don't know what you want to remove :)15:50
ndim bLUEE: You want to abort the rebase?15:50
Womkes joined15:50
bLUEE ndim thats correct15:50
ndim Ah.15:50
BryanRuiz1 joined15:51
BryanRuiz1 hi, when i use: git clone ssh://git@repo15:51
gitinfo BryanRuiz1: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.15:51
ndim bLUEE: man git-rebase, then look for "abort".15:51
gitinfo bLUEE: the git-rebase manpage is available at http://jk.gs/git-rebase.html15:51
BryanRuiz1 how can i get it to use a different ssh key?15:51
shruggar jast: can you turn off the auto-hi?15:51
armetiz left15:52
ndim BryanRuiz1: Do the normal ssh setup such that "ssh git@repo" does what you want.15:52
ph^ left15:52
bLUEE ndim ! thanks15:52
dcarper joined15:54
tommcdo BryanRuiz1: that is, creating a file in ~/.ssh/config that contains lines specifying the identity file (key), etc15:54
BryanRuiz1 thanks ndim, tommcdo15:55
Chibby left15:57
eno left15:57
spaceonline left15:57
rurufufuss left15:58
jeffisabelle left15:58
[mbm] left15:58
eno joined15:59
[mbm] joined15:59
_ikke_ does gitinfo now respond to hi?15:59
[mbm]Guest5578815:59
jast shruggar: I can. why should I? ;)15:59
Guest55788 left15:59
falena left16:00
Quanteek left16:00
surfdue How do I clone a repo on the server with the gitolite installation16:00
ssh: Could not resolve hostname localhost: Name or service not known?16:00
jast I suppose I can make it suppress the response if the message appears to be long enough to contain the start of an actual question16:00
surfdue nvm diff ports16:01
Cromulent joined16:01
shruggar jast: yeah, was about to say. Perhaps just trigger on "hi" by itself, but not "hi,"16:01
snearch left16:01
tingo joined16:02
Quanteek joined16:02
linusoleander left16:02
jast committed, will push out once I've got the other stuff done16:02
Fhsrap left16:03
troyt joined16:03
dreiss left16:04
x0166636 joined16:04
williamcotton joined16:04
Fhsrap joined16:05
jangell joined16:05
mritz joined16:05
tqmz left16:06
alberto56 joined16:06
kenperkins joined16:06
canton7 left16:06
canton7 joined16:07
ScottE joined16:07
keystr0k joined16:08
krz left16:08
jutaro left16:11
bLUEE when you do "git diff origin/master", in bash i am entered into some editor16:11
how do i navigate it and exit it ?16:11
FauxFaux It's probably `less`. Arrows, q for quit.16:11
vervic joined16:11
bLUEE :D16:12
SethRobertson !vcsh16:12
gitinfo https://github.com/RichiH/vcsh - a tool to manage dotfiles using git's fake bare repos to put more than one working directory into $HOME. Nothing to do with csh AFAIK.16:12
papegaaij left16:13
eno left16:13
cbreak-work left16:13
ralf_e left16:13
shruggar left16:14
tomasm- joined16:15
jay joined16:15
jayGuest2495716:15
kermit joined16:15
dcarper left16:15
gitinfo left16:16
rbrooks left16:16
eno joined16:17
SegFaultAX|work joined16:17
tomasm- hi, something just happened to a repository where in the process of trying to back it up (zipping the code's folder including .git), it's almost like the versioning log got reverted back to approximately 6 months ago... 'master' branch is 6 months old even though I've made many revisions/commits since then.... it seems that all the files are there, just that they are all of the sudden under 'untracked'. I also noticed for a few minutes th16:17
at files were showin as 'modified' and the pending changes were a reversion back to an older version... anyone know how this could have happened?16:17
Fullmoon_ joined16:17
jast what the16:17
sorahn left16:17
jast for some reason the bot refuses to connect now16:18
seems to be a TCP error, though... not my fault! :}16:18
Malar is git clone "local git directory" == copying "local git directory" to "current directory"?16:19
Jay_Levitt left16:19
jast Malar: no, it uses hardlinks for internal objects where possible16:19
tomasm-: sounds like something is missing from the archive16:19
Fullmoon left16:20
jatt left16:20
Quanteek left16:20
Malar jast, does that mean if i delete the current directory clone, the original file deletes too?16:20
jast Malar: no. that's not how hardlinks work.16:21
brokenshakles_ left16:21
shruggar joined16:21
erickr joined16:21
Tabmow left16:21
Malar ok, never used hardlinks :P.16:21
tomasm- jast, so what to do?16:21
jast basically you can safely use clone locally and save disk space too!16:21
spaceonline joined16:21
Fullmoon_ left16:21
Malar oh16:22
adman65 left16:22
jast tomasm-: do you still have the original repository? i.e. are we talking disaster recovery here or just trying to figure out what happened?16:22
Malar jast, is it like copy on write?16:22
jast Malar: sort of, yeah16:23
it works particularly well for git because objects/pack files never change16:23
a later 'git gc' or similar may cause it to create a completely new pack file at that point, thus losing the benefit of the hardlinks16:23
but until then you save space and there's not really any downside. :)16:24
tomasm- jast, I'm trying to fix the problem. this IS the original repository.... I don't understand what happened. it was fine yesterday. all I did was tar the folder up.... and the log was there (in gitk) 5 minutes ago, but after ANOTHER backup (just "tar jcvf ../backup.bz2 FOLDER"), the log has reverted back to 6 months ago... =(16:24
jast tomasm-: so it seems to you like *creating* the tarball somehow messed up the original repository?16:24
shruggar tomasm-: check your "history" output for anything unexpected?16:24
tomasm- history? how?16:25
shruggar type "history"16:25
jast this blows. apparently the IPv6 link between the bot and freenode is broken16:25
tomasm- oh, shell history...16:25
eno left16:26
RichiH SethRobertson: ?16:26
L42y left16:26
SethRobertson RichiH: Didn't you like my pimp?16:26
ns5 joined16:26
RichiH i do, but i didn't see the context16:26
tomasm- jast, I don't know if it's tar that did something or git-cola or what16:26
L42y joined16:27
jast there, magically fixed16:27
gitinfo joined16:27
ChanServ set mode: +o16:27
ns5 Hi! I need to use gitk, but when I invoke it, I get "Error in startup script: failed to allocate font due to internal system font engine problem", any idea?16:27
SethRobertson RichiH: Oh, the context was over on stackoverflow16:27
alvaro_o joined16:27
SethRobertson RichiH: http://stackoverflow.com/questions/436125/two-git-repositories-in-one-directory16:27
jast tomasm-: good to know that it might have been something different... :} my best guess is that the ref for your branch got corrupted by something16:27
tomasm- I saw it saying it had 'pending' changes that were actually reversions back to something 6 months ago, so I backed it all up, just in case....16:27
jast or reset16:28
tomasm- nothing deliberate, i'm sure16:28
jast tomasm-: is it just one branch that's affected or several?16:28
tomasm- I only have one branch16:28
alvaro_o left16:28
jast okay16:28
check if the most recent commit shows up in "git log -g"16:28
the one that's supposed to be the most recent, that is :)16:28
RichiH SethRobertson: ah16:28
friskd joined16:28
tomasm- no, the most recent is october 2011... =(16:29
jast okay, everyone, watch the bot crash and burn due to the new experiental code!16:29
.info git16:29
gitinfo left16:29
friskd left16:29
flijten left16:29
jast tomasm-: you used -g, right? and it may not be the topmost one in that list. see if your previous most recent commit shows up *anywhere* in that list... (but probably somewhat near the top)16:29
gitinfo joined16:29
ChanServ set mode: +o16:29
friskd joined16:29
surfdue I just setup gitolite setup all the keys, and everything. On my local computer I did a clone to test, works great.. External ip. I am on my other server now and trying to do the same clone, same ip, etc I am getting "fatal: 'panda-main' does not appear to be a git repository"16:29
eno joined16:30
spaceonline__ joined16:30
tomasm- jast, nope, nothing16:30
spaceonline left16:30
spaceonline__ left16:31
k6b left16:31
jast tomasm-: that is... highly unusual16:31
spaceonline joined16:31
SethRobertson tomasm-: It really sounds if you extracted over your .git. You can look in lost-and-found to find the appropriate commits to be your HEAD. Specifically, look in !fixup16:31
gitinfo tomasm-: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info)16:31
ns5 Does anyone has any idea how to fix this? http://pastebin.com/t2KvT0zU16:31
marciodias joined16:31
k6b joined16:31
jast really the only way I can explain it to myself is that something overwrote all of git's metadata with an ancient version16:31
for the sake of completeness, see if 'git fsck' finds any useful dangling objects16:31
vervic left16:31
SethRobertson ns5: tk font problem when running gitk? Never seen such a thing.16:31
bLUEE left16:32
brokenshakles_ joined16:32
arvind_khadri joined16:33
arvind_khadri left16:33
arvind_khadri joined16:33
tsdh left16:33
pidus joined16:33
L42y left16:34
gitinfo left16:34
SethRobertson ns5: Looks like you might not have the "Times New Roman" font installed.16:34
delight left16:35
ns5 SethRobertson: How do you know that it's missing "Times New Roman"?16:35
gitinfo joined16:35
ChanServ set mode: +o16:35
oehman left16:36
jast more bot crashage about to happen16:36
.info git16:36
gitinfo left16:36
_aeris_ left16:36
jceb left16:36
jast what? I just fixed that error :C16:36
oh. that's a different one.16:36
tomasm- ok well I made a backup the other day and wanted to import it back into my local version, so I can at least fix MOST of the stuff.... is that possible?16:36
gitinfo joined16:36
ChanServ set mode: +o16:36
jceb joined16:36
dabd joined16:37
SethRobertson ns5: Code inspection. However, you can try deleting ~/.gitk or adding fonts you do have to that. I have "set mainfont {Helvetica 9}\nset textfont {Courier 9}\nset uifont {Helvetica 9 bold}\n" in that file16:37
gitinfo left16:37
gitinfo joined16:37
ChanServ set mode: +o16:37
jast .info git16:37
gitinfo left16:37
jast see, now that's a different error this time16:37
SethRobertson ns5: Ah, it might be missing Helvetica/Courier andor Lucida Grande/Monaco as well.16:38
gitinfo joined16:38
ChanServ set mode: +o16:38
SethRobertson .info git!16:38
No fun16:38
_blop joined16:39
jast .info git16:39
more bugs!16:39
RichiH SethRobertson: any idea how to delete the csh blurb from the bot?16:39
SethRobertson You should add eliza to gitinfo. We can point users with severe problems to it "gitinfo, why does git hate me?"16:40
RichiH: Sure, read !gitinfo16:40
gitinfo RichiH: I am an IRC bot which responds to certain keywords to provide helpful(?) information to humans. Please see http://jk.gs/git/bot for more information about how to use me.16:40
sq-one joined16:40
empity joined16:40
amigojapan left16:40
blop left16:40
SethRobertson However, note that it appears to be undergoing maintenance right now16:41
mneorr left16:41
defts left16:41
jast all non-new features should work as normal16:41
occasional restarts are not to be avoided, though... I'm extending the core part, and it's a rather messy^Witerative process16:41
gitinfo left16:41
jast there it goes again!16:41
tomasm- if I have an old repo in /local/repo1, and a newer version in /local/repo2, how do I get the new stuff in repo2 to be added to repo1? I tried git fetch /local/repo2 from within repo1, but that didn't do anything16:42
gitinfo joined16:42
ChanServ set mode: +o16:42
_aeris_ joined16:42
jast tomasm-: git pull /path/to/other yourbranch16:42
Tabmow joined16:42
ns5 SethRobertson: I installed dejavu font and now gitk works fine16:42
jast .info git16:42
gitinfo .info result: Git (software), a distributed version control system <http://duckduckgo.com/Git_(software)> | Georgia Institute of Technology, an American engineering and technological university located in Atlanta, Georgia, USA <http://duckduckgo.com/Georgia_Institute_of_Technology> | The Gits, a post punk band <http://duckduckgo.com/The_Gits> | ...16:42
jast finally!16:42
SethRobertson tomasm-: Or `git remote add repo2 /local/repo2` and then `git pull repo2`16:42
jast that's part one working16:42
.info the meaning of life, the universe and everything16:43
SethRobertson .info gitslave16:43
gitinfo .info result: Answer to Life, the Universe, and Everything: The Answer to Life, the Universe, and Everything has a numeric solution in Douglas Adams ' series The Hitchhiker's Guide to the Galaxy. <http://www.thefreedictionary.com/_/search.aspx?pid=aff18&word=Answer%20to%20Life%2C%20the%20Universe%2C%20and%20Everything> [from The Free Dictionary]16:43
.info result: gitslave: Software description: superproject mutli-repository management. <http://sourceforge.net/projects/gitslave/> [from SourceForge]16:43
jast and it wasn't even that much work :)16:43
now the other one that's more tricky to implement because it involves HTML parsing...16:43
.search git16:43
well it doesn't crash, at any rate :)16:43
SethRobertson .info help16:43
gitinfo .info result: Help: Help is any form of assistance. <http://en.wikipedia.org/wiki/Help> [from Wikipedia]16:43
jast that's a good start16:43
linusoleander joined16:43
Malar left16:43
jast the .info command will attempt to disambiguate/define/solve any query16:44
it can do calculations, dictionary lookups, wikipedia articles, many code hosting sites, ...16:44
d0k_ joined16:44
SethRobertson .clearcase: why does clearcase suck?16:44
.info why does clearcase suck16:44
gitinfo .info result: nothing found.16:44
d0k left16:44
jast .info clearcase16:44
gitinfo .info result: IBM Rational ClearCase: The Rational ClearCase family consists of several software tools for supporting software configuration management of source code and other software development assets. <http://en.wikipedia.org/wiki/IBM_Rational_ClearCase> [from Wikipedia]16:44
d0k_d0k16:44
SethRobertson .info 1+116:44
gitinfo .info result: [calc] 1 + 1 = 216:44
jast it's pretty magical if I do say so myself16:45
it uses duckduckgo's awesome zero click API16:45
SethRobertson .info 00:1d:60:cf:32:1316:45
gitinfo .info result: nothing found.16:45
jast or was that zeroclick info?16:45
Araxia joined16:45
IcePic its pretty magical it did not know why CC sucks a lot. ;)16:45
jast I think the syntax for IP stuff is different16:45
tomasm- hmmm, ok git pull doesnt work because it says there are untracked working files to be overwritten... can I bypass that?16:45
KaZeR_W left16:45
SethRobertson tomasm-: Review the changes: `git diff` If you are QUITE sure you want to nuke them, `git reset --hard HEAD` if you are less sure `git stash`16:46
jast well apparently it doesn't do IP lookups or anything16:46
heppy joined16:46
jast tomasm-: you have a backup of the working tree, right? just git reset --hard to obliterate everything, then16:46
apok joined16:46
maletor joined16:47
L42y joined16:47
angelsl left16:47
fanaticgeek left16:48
x0166636 left16:49
legumbre joined16:49
philips left16:50
johnathanb left16:50
cakehero joined16:51
jceb left16:51
philips joined16:51
johnkpaul joined16:52
DavidP joined16:53
jceb joined16:53
whitman left16:54
pidus left16:54
dreiss joined16:55
yoklov left16:55
giallu left16:56
gitinfo set mode: +v16:56
DavidP hello, I try to add 2 submodules to a projects. the 1st submodule is added and cloned correctly, but the second one say : "fatal: You are on a branch yet to be born"16:56
FauxFaux Did you try committing the first submodule add? </complete guess>16:57
DavidP yes, commit and push16:57
johnkpaul left16:58
pidus joined16:59
griotspeak joined16:59
OOPMan joined16:59
mikewintermute left16:59
SethRobertson Does the 2nd submodule have anything in it? Are you sure? Try cloning it by itself16:59
ns5 From gitk I can see that some of the commits belong to branches that I have removed, and looks like I can never go to those commits. How to remove them?17:00
Those commits are like orphan commits17:00
no pointer is pointing to them17:00
DavidP my console : http://pastebin.com/XS9pyxzH (I'll try the clone of the second module)17:01
SethRobertson ns5: What arguments did you give to gitk?17:01
eno left17:02
overbythere left17:02
ns5 SethRobertson: no arguments, just run "gitk"17:02
flavius joined17:02
jast let's see what my blindly coded libxml stuff does17:02
.search git17:02
RaceCondition left17:03
jast that's not terribly inspiring17:03
jameswarren left17:03
eno joined17:03
jast !ping17:03
gitinfo I only respond to !ECHO-REQUEST17:03
fischli joined17:03
jast hmm. wonder how it managed to not send _anything_17:03
n3m joined17:04
n3m left17:04
SethRobertson ns5: Try selecting "View->New" and then accepting the defaults. It feels like your default view is pulling other stuff in17:04
n3m joined17:04
jast .search git17:04
fischli left17:04
fanaticgeek joined17:05
psoo left17:05
SethRobertson ns5: Oh, that doesn't help. The new view is based on the old one. Perhaps sharing a screenshot would help us help you.17:06
libertyp2ime left17:08
libertyp1ime joined17:08
eijk_eijk17:08
yoklov joined17:09
icdark left17:09
DavidP FauxFaux: my second module seems dirty... git status say "(working directory clean)" but I've logs and files...17:09
rchavik left17:09
cubb` left17:10
_iron left17:10
reels_ left17:10
lonewulf` joined17:10
OOPMan left17:10
mister_m left17:11
ns5 Say that I use "git reset --hard <commit>" to go back to an old commit, is it possible to undo this?17:12
pidus_ joined17:12
pidus_ left17:12
pidus_ joined17:12
FauxFaux You can find the old commit in the reflog and reset hard back to it, to undo the damage to your branch, but your working copy changes are /gone/. !gka17:12
gitinfo For a better way to view the reflog, try: gka() { gitk --all $(git log -g --format="%h" -50) "$@"; }; gka17:12
alex__c2022 joined17:13
duckxx joined17:13
pidus left17:13
pidus_pidus17:13
adman65 joined17:14
shwaiil joined17:15
shwaiil hi17:15
gitinfo shwaiil: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.17:15
luxurymode joined17:15
ns5 FauxFaux: so commits are never removed? What if I remove a branch that has many commits not merged into master?17:16
dpino left17:16
jceb left17:16
shwaiil Q: I've done git remote add origin [email@hidden.address] but there was a typo on yyyyy.git and now I can't push because it doesnt exist. What to do ?17:16
Thanks for looking17:16
lonewulf` left17:16
_iron joined17:16
lonewulf` joined17:16
soulcake left17:16
FauxFaux ns5: It'll be eventually garbage collected (after a couple of weeks).17:16
shwaiil ah solved it's git rm17:17
thanks17:17
ns5 FauxFaux: git automatically removes them after a few weeks?17:17
P0TaT0 left17:18
pidus left17:18
lyddonb left17:19
FauxFaux Yeah. i.e. it's really hard to lose stuff unless you fail pretty damn hard.17:19
xrated joined17:19
xrated Has anyone used SmartGit?17:19
MistuhKurtz joined17:20
eletuchy joined17:21
FauxFaux xrated: Yes, people have used SmartGit.17:21
pandeiro left17:21
tomasm- left17:22
xrated Well it tells me it can't parse the HEAD file but using git through mingw doesn't give me any such error17:22
eletuchy left17:22
h0bbit joined17:23
Vampire0 left17:24
Vampire0_ joined17:24
eno left17:24
scelis joined17:25
OOPMan joined17:25
pandeiro joined17:25
mishok13 left17:26
eno joined17:27
eno left17:27
eno joined17:27
LimeBlast left17:29
cg433n joined17:30
dcarper joined17:30
Element9_work left17:31
notola joined17:31
notola left17:31
cg433n left17:31
ibash joined17:31
momo__ joined17:32
ericmuyser joined17:32
Element9_work joined17:32
pfFredd joined17:32
sattu94 joined17:33
aeontech joined17:33
project2501a left17:33
pidus joined17:33
project2501a joined17:33
levifig left17:33
francisfish left17:33
gitinfo set mode: +v17:34
levifig joined17:34
gitinfo left17:35
gitinfo joined17:35
ChanServ set mode: +o17:35
satyanash left17:36
gitinfo left17:36
JJasonClark joined17:36
babilen left17:36
momo__ left17:37
gitinfo joined17:37
ChanServ set mode: +o17:37
Fandekasp left17:37
gitinfo set mode: +v17:37
netiru joined17:37
hsttlrjeff left17:37
proq left17:38
empity` joined17:39
mister_m joined17:39
JJasonClark hello all. Anyknow know a way to reference more than 1 global .gitconfig? I would like to setup my global config for generic settings and another one for machine specific config.17:39
marcuy_ joined17:40
milki has no clue17:40
jast JJasonClark: an include directive will be added to git's config file format soonish17:40
empity left17:42
jast also, AFAIK git will fall back to /etc/gitconfig if the option isn't set in .git/config and ~/.gitconfig17:42
$(prefix)/etc/gitconfig to be precise :)17:42
JJasonClark jast: so I just need to wait a little longer. Not to bad.17:42
achadwick left17:42
canton7 left17:42
milki thats cool17:42
JJasonClark jast: hey! that could work. I can just put the machine stuff in the /etc/gitconfig17:42
jameswarren joined17:43
canton7 joined17:43
hgb joined17:43
JJasonClark jast: thanks. I'm going to give that a try now17:43
milki i thought thats what you meant by global...17:43
jast global is git's name for the user's .gitconfig file17:43
pantsman joined17:43
milki hmm17:43
jast the global-global config file is called system config file17:44
milki o17:44
jast see options --global/--system to 'git config' :)17:44
milki its "global" in the man page17:44
and system17:44
ok17:44
hgb Hi. I have this repo that I've cloned, and I have a patch (imported by git am) which I want to push, but even though git status says my branch is one ahead of origin/trunk, git push says everything is up-to-date. How come?17:44
Karmaon left17:44
ashisjoshi joined17:44
milki your origin/trunk is not up-to-date17:44
h0bbit left17:45
jast hgb: use 'git fetch' to bring origin/* up-to-date17:45
zoran119 left17:45
milki origin/trunk does not always = remote's trunk17:45
levifig left17:46
twitchy joined17:46
dannyanderson left17:46
axl_ joined17:46
hgb jast: git fetch doesn't do anything. Same message after doing that.17:46
moomerman joined17:46
cybersphinx joined17:46
levifig joined17:46
canton7 left17:47
ralf_e joined17:47
ralf_e left17:47
lyddonb joined17:47
canton7 joined17:47
rtuin left17:47
RaceCondition joined17:47
shibayu36 joined17:47
Karmaon joined17:47
j416 joined17:47
pidus left17:47
dhruvasagar left17:48
pidus joined17:48
bgerber left17:49
k6b`_ joined17:49
k6b`_ left17:49
rheddry joined17:49
aldodelgado left17:49
jast hgb: please pastebin the output of: git symbolic-ref HEAD; git rev-parse HEAD; git rev-parse origin/trunk; echo =====; git rev-list -n 5 ...@{u}17:49
rheddry left17:49
levifig left17:50
dhruvasagar joined17:50
levifig joined17:50
Raging_Hog joined17:50
the_cybersphinx left17:50
scientes joined17:50
hgb jast: http://fpaste.org/Wgi0/17:51
Guess I could'a actually done that with ; instead of five commands... Oh, well.17:51
pantsman left17:51
jast I'll live :)17:51
iamjarvo SethRobertson: whats the workflow article you have on your site again?17:51
jast and what is the exact line in 'git status' that you were talking about? since it's just one line, feel free to paste here17:52
SethRobertson iamjarvo: You mean !best_practices?17:52
gitinfo iamjarvo: There is no one right answer for git best practices, but a consensus from #git is available at http://sethrobertson.github.com/GitBestPractices/17:52
iamjarvo thanks. found you on githubv after i asked :)17:52
hgb # Your branch is ahead of 'origin/trunk' by 2 commits.17:52
vervic joined17:52
hgb jast: Then, git push says up-to-date.17:52
zoran119 joined17:53
hgb (There was one commit, now there are two, since I tried adding a small extra one for testing...)17:53
LmAt joined17:53
Guest24957 left17:53
kremiak joined17:53
Jay_Levitt joined17:53
eletuchy joined17:53
Jay_Levittjaylevitt17:53
nikuyoshi left17:53
jameswarren left17:53
ashisjoshi left17:53
jast hgb: what about the output of: git ls-remote origin refs/heads/trunk17:53
diogogmt joined17:53
jameswarren joined17:54
ns5 why after "git gc --prune=now --aggressive" I can still git show a commit which belongs to a branch already forcefully removed?17:54
Element9_work left17:54
hgb jast: No output17:54
duckx joined17:55
jast hgb: that indicates someone removed/renamed the branch in the remote repository, and push doesn't automatically re-create it17:55
hgb: perhaps the upstream name is now 'master' like your local branch? please go check if you can17:55
hgb jast: Hmm. That may be.17:55
bgerber joined17:55
hgb tries to find out17:56
cyphase left17:56
duckxx left17:56
LmtdAt left17:56
barneybook joined17:56
hgb jast: Seems like it's (still) called trunk17:56
Sigma joined17:57
twitchy left17:57
jast hgb: that's weird... because when ls-remote looked, it didn't find a 'trunk' branch :}17:57
moomerman left17:57
shwaiil left17:57
jast you can do a "git ls-remote origin" to get all refs the remote repo knows about17:57
might be a longer list17:58
fr| left17:58
hgb jast: HEAD and refs/head/trunk17:58
heads, I mean17:58
diogogmt left17:58
netiru left17:58
vervic left17:58
cyphase_ joined17:59
jast hm. what does it say for refs/heads/trunk?17:59
hgb 46ffabcdb9cb4e4b05a83db21156db451d250838 refs/heads/trunk17:59
lonewulf`doctorwulf17:59
doctorwulflonewulf`17:59
Destos left17:59
jast okay, so that matches your origin/trunk value17:59
diogogmt joined17:59
kaen joined17:59
maxy joined17:59
senny left17:59
eletuchy left17:59
RaceCondition left18:00
mister_m left18:00
hgb finds this stuff weird18:00
jast oh, hey, it may have something to do with your local branch name being different from the remote name18:00
shruggar left18:00
cg433n joined18:00
LmAt left18:00
jast let's see how your push config is set up. what does this say: git config push.default18:00
hgb Nothing.18:00
LmAt joined18:00
jast right18:00
hgb Hmm. Come to think about it... Someone suggested I set that to auto18:00
pidus left18:00
jast 'auto' isn't a valid value18:01
cg433n left18:01
jast but yeah, the default is confusing in your situation18:01
you may want to set it to 'upstream'18:01
hgb No. rebase.18:01
I was supposed to use. I think.18:01
duckx left18:01
williamcotton_ joined18:01
hgb Hmm. Or upstream...18:01
jast well, we're trying to change the behaviour of push18:01
the default is for it to compare the names of the local and remote branches and update branches if there are pairs (e.g. names that exist on both sides)18:01
mister_m joined18:01
jast in your case that breaks because your local branch name is different from the remote one18:02
hgb tracking was the suggestion, actually.18:02
duckxx joined18:02
jast 'tracking' is deprecated, the new name is 'upstream' :)18:02
shibayu36 left18:02
hgb Ah, ha18:02
jast don't ask me why... I thought 'tracking' was a perfectly good name :}18:02
hgb Ah!18:02
Now we're getting somewhere.18:02
julius_ joined18:02
julius_ gi18:02
hi18:03
LongBeach left18:03
johnkpaul joined18:03
williamcotton left18:03
hgb Then I suppose the next question is if this patch really _should_ be pushed...18:03
williamcotton_williamcotton18:03
cortana2 left18:03
hgb jast: Many thanks.18:03
jast that's not my decision to make :} but you're welcome18:03
hgb I'll leave that to me :)18:03
julius_ git clone git@hostname:gitolite-admin - in what directory does this search for the repo gitolite-admin=18:04
?18:04
canton7 julius_, <home of git user/repositories. You really shouldn't be accessing it directly, though18:04
julius_ canton7, i have to, to configure gitolite18:05
adman65 left18:05
canton7 julius_, sorry, I meant you shouldn't be accessing it through something other than ssh18:05
Fandekasp joined18:05
infogulch joined18:06
julius_ git uses ssh in the background18:06
johnkpaul left18:06
harshpb joined18:06
subh joined18:07
ns5 left18:07
canton7 ok, there's a lack of understanding somewhere here. I thought you were asking in which path the gitolite-admin repo was stored. I told you, but warned you not to access it over the filesystem (e.g. 'git clone /home/git/repositories/gitolite-admin')18:07
as3llus left18:07
Russell^^ joined18:07
apok left18:07
jast julius_: !xy18:08
gitinfo julius_: I suspect that you are trying to achieve your goal in a way that doesn't work very well with git. Let's take a step back. What is it that you ultimately want to achieve by what you're trying to do now?18:08
xrated left18:08
bitkiller left18:08
apok_ joined18:08
Element9_work joined18:09
jast hmm, not exactly general enough here :) but understandable enough18:09
yshh left18:09
fanaticgeek left18:09
kevwil left18:09
Element9_work left18:10
julius_ canton7, no i meant in which directory does the above syntax look18:10
Element9_work joined18:10
Element9_work left18:10
dr_lepper left18:10
jast we've answered that question18:10
but it shouldn't matter because gitolite's setup should automatically create it and everything18:11
ajt left18:11
IWorld joined18:11
IWorld left18:11
jast and now... will it crash?18:11
no.18:12
julius_ im looking at a gitolite howto, while installing i was asked to run: git clone git@hostname:gitolite-admin to get the admin repo to my client system for configuration....and i was wondering in what directory THAT command would look18:12
jast well we covered that already! given gitolite's defaults, it's in /home/git/repositories18:12
julius_ jast, no he answered the question where the repo is18:12
yoklov left18:12
jast well and that's where it looks, courtesy of gitolite's path resolving magic18:12
julius_ ah18:13
canton7 julius_, it doesn't "look" anywhere. It connects to hostname through ssh. gitolite answers the connection. Git asks for the gitolite-admin repo. gitolite fetches it from <home dir>repositories/gitolite-admin18:13
eletuchy joined18:13
julius_ so gitolite plays with the paths, that got me confused thx18:13
eletuchy left18:13
paul424 joined18:13
Kog|Work whoa, gitlolite has a picture-guided install doc? I guess they weren't kidding when they claimed to have a lot of documentation18:14
duckx joined18:14
jast yeah, the gitolite maintainer gets a lot of stupid questions and he's been trying to fight it by making the documentation *really* good :)18:14
tsdh joined18:15
Kog|Work jast: fair enough, I salute proper docs18:15
duckx left18:15
jast well I'm stumped here. for some reason my .info requests work but my .search requests don't18:15
it's the same code, supposedly18:15
[to the uninitiated: this is not strictly git-related]18:15
duckx joined18:16
Kog|Work jast: honestly I try doing awesome documentation... then people just ignore the docs and ask stupid questions anyway18:16
never found it to help18:16
duckxx left18:16
julius_ but how does gitolite step in when i do "git clone user@host:repo" that would look into /home/user/repo without any additional magic?18:16
jast yeah, I'm not sure it works all that well for sitaram either :)18:16
julius_: the magic is in ~git/.ssh/authorized_keys18:17
oehman joined18:17
Sigma left18:17
julius_ Kog|Work, they just dont love the software as you do18:17
berserkr joined18:18
julius_ jast ah thx18:18
Chillance joined18:18
jast oh. I'm absolutely stupid.18:18
canton7 it's got to the point, though, that he's got a doc for pretty much every scenario ever. So dealing with the stupid questions is a case of locating the right doc18:18
jast code nested incorrectly. DUH.18:18
scientes go i git svn fetched18:18
but where is it?18:18
and how do i checkout it18:19
jast we return to our regularly scheduled program of frequent bot crashes18:19
scientes: you may be looking for 'git svn rebase'18:19
scientes doesn't work cause there are no commits18:19
canton7 scientes, git branch -a. it's probably in remotes/trunk18:19
jast oh, right18:19
[mbm] joined18:20
jast that's why it's easier to use 'git svn clone' for creating a new git-svn repo18:20
scientes i did18:20
and then it stalled up18:20
babilen joined18:20
jast ah, I see18:20
scientes so i did git svn fetch after that18:20
and it continued where it left off18:20
jast is that with --stdlayout?18:20
scientes with no options18:20
pfFredd left18:20
jast so just one branch, right?18:20
j416 left18:20
scientes wishes the enlightment git mirror worked18:21
rtuin joined18:21
j416 joined18:21
scientes i think so, but im not git on svn18:21
pidus joined18:21
oposomme joined18:21
scientes git svn clone http://svn.enlightenment.org/svn/e/python18:21
everything went into .git18:21
jast that doesn't even seem to exist18:21
scientes and git branch -a shows nothing18:21
defts joined18:21
Kog|Work julius_: yes, but that's just life: people have varying degrees of awareness and passion18:22
[mbm] what's the best way to clean up the mess caused by git submodules? trying to set up a mirror but several nested git submodules each with the old url hardcoded in .gitmodules18:22
Kog|Work jast: it does if you put a hyphen between git and svn18:22
scientes http://svn.enlightenment.org/svn/e/18:22
ahh18:22
i've gotta put trunk in there18:22
jast Kog|Work: I mean the URL18:22
_aeris__aeris_|away18:22
jast Kog|Work: I happen to know how git works ;P18:22
Kog|Work jast: oh, sorry18:22
tommyvyo left18:22
xrated joined18:22
Chaser joined18:22
dabd left18:22
Kog|Work jast: you know, everyone says that, but in practice I find that no one seems to know exactly how it works18:22
jast I won't claim that I know all the details... but I've contributed a couple of patches and stuff18:23
scientes it confused me cause it checked out files18:23
Kog|Work jast: actually, if you've got the deep voodoo I've got a question you might be able to help with18:23
heppy left18:23
tommcdo there's only one man who knows how git works :P18:23
rtuin left18:23
Kog|Work tommcdo: jesus?18:23
jast Kog|Work: sure, let's give that a try18:23
bitkiller joined18:23
envygeeks joined18:23
jast I don't think any one person knows all the details in git18:23
tommcdo i'd say it's a bit excessive to call Linus that, but yeah18:23
Kog|Work jast: so one of my co-workers decided to check in a file with an unprintable unicode character in the name18:24
jast Linus hasn't been the maintainer of git in _years_18:24
Kog|Work tommcdo: I'm not sure he knows exactly how it works18:24
tommcdo oh, fair enough. didn't know that18:24
tommyvyo joined18:24
scientes anything but NULL and / eh? Kog|Work18:24
paul424 can you explain int the simplest words what is the diffrence between add -p and commit ? That is between adding a patch and commiting a file ?18:24
whats the practical diffrence is ? cause the changes are saved there anyway ?18:24
jast paul424: that's not actually what add -p does. more explanation follows. :)18:25
scientes i've never used add -p, what does it do?18:25
cmn add puts files in the index (staging area)18:25
scientes yeah i know that18:25
cmn commit creates a new commit with the contents of the index18:25
Nik05 joined18:25
kevwil joined18:25
jast paul424: 'git add' is to tell 'git commit' what files/changes to include in the commit. if you do 'git commit' without ever adding anything, no commit is created because it wouldn't include any changes18:25
cmn scientes: that's not for you18:25
jast paul424: ('git commit -a' automatically git adds all changed files)18:25
scientes sry, i was wonder what the -p does18:25
scientes goes and grep man18:26
jast paul424: git add -p, on the other hand, let's you add individual changes, even just parts of files18:26
cmn man git add --interactive18:26
gitinfo the git-add manpage is available at http://jk.gs/git-add.html18:26
jameswarren left18:26
pidus_ joined18:28
pidus_ left18:28
pidus_ joined18:28
krz joined18:29
heppy joined18:29
pidus left18:30
cyphase_ left18:30
paul424 yeah that was the wrong question .... So whats' the practical diffrence between add -p ( patches ) and add <file > (whole files ) ? Both changes are "saved" and the history is written as well.18:30
ipalaus left18:30
Kog|Work jast: sorry, co-worker, brb18:30
oehman left18:30
williamcotton_ joined18:31
williamcotton left18:31
williamcotton_williamcotton18:31
cyphase joined18:32
paul424 ahh ok I get it ... never mind.18:32
pidus_ left18:32
Nik05 left18:33
pidus joined18:34
pidus left18:34
tqmz joined18:34
Ksugzulut joined18:35
shruggar joined18:35
yoklov joined18:35
marcogmonteiro left18:35
btanaka joined18:37
scientes !rm18:39
gitinfo [!karma] Karma is nominally tracked by http://carmivore.com/. If you wanted to thank me, for instance, you would say gitinfo++. My karma is on display via http://carmivore.com/gitinfo18:39
Fullmoon joined18:39
scientes nope, how do i remove files?18:39
Fullmoon left18:39
scientes with git add18:39
milki git add adds files18:40
git rm removes fiels18:40
scientes -A18:40
thar we go18:40
paul424 Now I have serious question : why the same cmd 'add' is used to add file to the project "tracked area ' and to the 'staged area' from it ?18:40
kevlarman paul424: there is no "tracked area"18:41
SethRobertson Do you mean working directory by "tracked area"?18:41
_blop left18:41
paul424 SethRobertson: yeah18:41
mneorr joined18:41
SethRobertson It is added FROM the working directory TO the 'index'18:41
Vinnie_win *sigh* how do I remove stuff from the index that I don't want commited18:42
specifically, an entire directory (recursively)18:42
paul424 .w index18:42
kaen left18:42
Vinnie_win say what18:43
nicxvan joined18:43
nikuyoshi joined18:43
alexim joined18:43
SethRobertson Vinnie_win: `git status` tells you how18:43
paul424 SethRobertson: ok so why the same command ?18:43
Vinnie_win git reset18:43
sami joined18:44
SethRobertson paul424: Why the same command as what?18:44
Vinnie_win ahhhh18:44
sami Could i ask gitweb questions here?18:44
paul424 SethRobertson: why the same cmd 'add' is used to add file to the project "tracked area ' and to the 'staged area' from it ?18:44
spiette joined18:44
tatsuya_o left18:44
heppy left18:44
SethRobertson It isn't. Can you demonstrate the two different usages that you are referring to?18:45
joshsmith joined18:45
mneorr left18:45
Vinnie_win the command to unstage was "git reset HEAD <dir>"18:46
paul424 SethRobertson: ohh so the "new file" automaticly goes into staged area/18:46
SethRobertson paul424: And please start using the preferred git terminology instead of the works you make up. "Working directory" and "index"18:46
jast paul424: the area is the same. in both cases, the first time you stage something the file starts being tracked.18:46
paul424 I see now.18:46
jast 'tracked' == 'is it in the index'?18:46
(basically)18:46
shruggar left18:47
Vinnie_win I thought tracked meant "will have history"18:47
shruggar joined18:47
Vinnie_win i.e. "remote tracking branch"18:47
paul424 nothing added to commit but untracked files present (use "git add" to track)18:48
nikuyoshi left18:48
SethRobertson Vinnie_win: No. I recommend reading !book18:48
gitinfo Vinnie_win: There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable18:48
Vinnie_win !gitt18:48
gitinfo A book designed to teach people about Git in a real world usage model. The book follows a fictional company as they implement and learn about Git. Covers all 21 standard Git commands. Available for free at http://cbx33.github.com/gitt/18:48
libertyp1ime left18:49
SethRobertson I'd fire any developers who were like the ones in this fictional company that took months to learn how to use version control18:49
sami Well i'll try anyways. I've just pushed new code in to my git repo and after starting the gitweb it's not showing up anymore. (after the push)18:50
paul424 Vinnie_win: is there hentai version for it :D18:50
kerrick joined18:50
Vinnie_win How is that funny18:51
I'm not asian18:51
paul424 never mind than18:51
Vinnie_win funny you should ask...is there a channel for git discussions in Chinese?18:51
(serious question)18:52
shruggar left18:52
ph^ joined18:52
ajt joined18:53
paul424 Is there some dictionary for git terms ?18:53
SethRobertson paul424: man gitglossary18:53
gitinfo paul424: the gitglossary manpage is available at http://jk.gs/gitglossary.html18:53
ajt left18:53
paul424 ohh greart18:53
CareBear\ Vinnie_win : don't know of a cn channel, sorry18:54
shruggar joined18:54
CareBear\ Vinnie_win : but feel free to start one!18:54
Vinnie_win CareBear: How would I go about trying to find out?18:54
I've tried search engines but they don't turn anything ujp18:55
CareBear\ besides asking here, I guess you can also ask on the mailing list18:55
Vinnie_win Freenode mailing list?18:55
CareBear\ or simply join #git-cn18:55
FernandoBasso left18:55
Vinnie_win its empty18:55
CareBear\ I was thinking the git mailing list18:55
nod, so you get to start it18:55
Vinnie_win That's beyond useless18:55
erickr left18:55
rcu joined18:55
tommcdo alright, i was seeking some help earlier on subtrees and the like, and i ran into an even more complex problem. i wrote out a scenario that i'll paste here. it's kind of long and involved, but i want to be as clear as i can...18:55
Vinnie_win First of all I don't speak or write Chinese, and second of all if the channel is empty, how is one to get help?18:56
CareBear: but thanks for caring :-)18:56
adamm joined18:56
tommcdo A repository at git://example.com/mod containing a modules directory already exists. It consists of code that is to be shared across all projects. Alice creates a new project and configures a repository for it at git://example.com/proj. She then adds the module to the project by adding a remote to git://example.com/mod and adding it in with read-tree, and putting it under the subdirectory lib. Now there is a directory in lib/modules that18:56
CareBear\ Vinnie_win : you asked if there was one - I assumed you wanted to use or contribute :)18:56
tommcdo (my apologies for the wall of text)18:56
Vinnie_win CareBear: I'm mentoring a Chinese programming and he's having the dickens of a time with Git18:57
CareBear\ Vinnie_win : starting the channel means creating a new forum for chinese speaking users18:57
Vinnie_win Yeah I guess I could do that if there was no alternative but if there is no one there now, its doubtful it would get any sort of critical mass. I've started channels before and they are...well, slow to pick up18:57
SethRobertson tommcdo: A truncated wall at that. We stopped after "a directory in lib/modules"18:57
CareBear\ Vinnie_win : I see. if there is a language barrier I guess books are better than live help, because they can be studied at a comfortable pace18:57
tingo left18:58
xrated left18:58
tommcdo damn, that's less than half-way through haha. i'll pastebin it18:58
mrsrikanth joined18:59
tommcdo http://pastebin.com/AZwyWj8v18:59
i bet it's not every day someone pastebins a question, eh? (much thanks to anyone who actually chooses to read this!)19:00
levifig left19:00
empity` left19:00
CareBear\ tommcdo : see about !submodules19:00
gitinfo [!submodule] git-submodule is ideal to add subsidiary git repositories to a git superproject when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes upstream. See http://book.git-scm.com/5_submodules.html19:00
guns left19:01
shruggar left19:01
_aeris_|away_aeris_19:01
blop joined19:02
levifig joined19:02
xrated joined19:03
pdtpatr1ck_ joined19:04
mandric joined19:04
krz left19:04
jeppy joined19:05
tommcdo CareBear\: so, when someone clones the superproject, they'll get all the submodules, and git will remember that they are submodules?19:05
n3m left19:06
SethRobertson Yes. Submodules are annoying to use because of that.19:06
n3m joined19:06
tommcdo SethRobertson: care to elaborate?19:06
SethRobertson !submodules_change19:07
!submodule_change19:07
gitinfo In order to change a submodule you must go into the submodule repository, check it out to the appropriate branch, make the needed change (possibly involving git pull), commit the change, cd .. (out of the submodule), git commit -m "Updated submodule" submodulepath19:07
paul424 huh C is very small language but for modern system programer its just a fraction percent with other requested skills ( make , cmake , git , emacs , compiler options etc :D )19:07
Destos joined19:07
jeppy left19:07
pdtpatr1ck left19:07
pdtpatr1ck_pdtpatr1ck19:07
MANCHUCK_ joined19:07
Fandekasp left19:07
SethRobertson tommcdo: There are other options, see !subprojects19:07
gitinfo tommcdo: So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely seperate. Otherwise your best options are "!submodule" "!gitslave" and "!subtree" Try typing those commands into this IRC channel.19:07
CareBear\ and submodules need to be downloaded from their corresponding servers19:07
gitinfo left19:07
giallu joined19:07
jast yay crash!19:07
gitinfo joined19:08
ChanServ set mode: +o19:08
CareBear\ paul424 : neither cmake nor emacs nor git are really neccessary for programming19:08
tommcdo SethRobertson, CareBear\: I was looking into those other options earlier, and subtree seemed to be the most appropriate, but now that i'm trying to implement it, it's not working out as i'd like19:09
paul424 CareBear\: neither the C language >_< .19:09
kevwil left19:09
MANCHUCK left19:10
teotwaki left19:11
SethRobertson tommcdo: Sorry to hear that. I don't have time to look into it right now, perhaps someone else can help you. You can also look into !subtree_alt19:11
gitinfo tommcdo: The git subtree merge method is hard to export changes from.. https://github.com/apenwarr/git-subtree provides another method which appears to be easier to export changes from. Also as a no-change-exported method, see https://metacpan.org/module/git-stitch-repo which claims to generate a unified history instead of merged branches.19:11
phishy joined19:12
Kog|Work jast: sorry about that... speaking of co-workers that can't figure things out heh19:14
gitinfo left19:14
jast web search implemented into bot! \o/19:14
Kog|Work jast: so anyway, someone committed+pushed a file with an unprintable unicode char in the name19:14
envygeeks left19:14
gitinfo joined19:14
ChanServ set mode: +o19:14
libertyp1ime joined19:14
Kog|Work jast: and then people who were behind remote/origin couldn't catch up without doing a hard reset to HEAD19:14
jast .search clue19:15
gitinfo jast: Got a response here!19:15
Hasbro Games - Clue <http://jk.gs/tmp/2> | Clue | Board Game | BoardGameGeek <http://jk.gs/tmp/3> | Clue (film) - Wikipedia, the free encyclopedia <http://jk.gs/tmp/4> | ...19:15
SethRobertson .search jast porn19:15
Kog|Work jast: the error was totally opaque too19:15
gitinfo SethRobertson: Got a response here!19:15
<http://jk.gs/tmp/5>19:15
jast oh, I forgot a debug message19:15
Kog|Work jast: so the real problem is that people here don't know how to use git, so repairing the history becomes really hard to do19:15
jast Kog|Work: can't say much without knowing the opaque error19:16
Kog|Work jast: I'm not really quite sure what to do about it other than remove both nodes: the original commit, the rename, from remotely tracked history19:16
jast: and then telling people to do another pull/fetch19:16
SethRobertson We have fairly instructions on recovering from most user errors. Repository corruption, if that is your problem, is hard for anyone to recover from19:16
Kog|Work jast: but the problem being that people keep recommitting the history, so it's hard to reparent things19:16
jast corruption has nothing to do with it19:16
oposomme left19:16
Kog|Work yeah, this isn't corruption, this is just stupidity19:16
jast: so in the mean time I told them to just reset hard to HEAD, which is fine... it's a single branch19:17
it's where we keep some DB scripts19:17
SethRobertson Kog|Work: then after you have fixed the bad history, set the forbid-force-override option19:17
the_cybersphinx joined19:17
dannyanderson joined19:17
Kog|Work SethRobertson: hahah, it's funny you should mention that19:17
warthog9 left19:17
Kog|Work SethRobertson: but no, this wasn't the result of pushing via force19:17
Danielpk left19:18
SethRobertson Then write a receive hook to forbid that bad history19:18
whitman joined19:18
Kog|Work the bad history is some idjit slapped a bogus character in a file name19:18
I'm not even entirely sure how he did it19:18
but yes, we could add a hook to run a regex across the name and look for such things19:19
that's rather ex post facto though19:19
jast so just renaming the file and comitting and pushing that doesn't work because...?19:19
Kog|Work well, so if you're before that bit of history you can't catch up19:19
I guess we could try and amend the commit19:19
jast why not?19:19
SethRobertson You can either rename the file in history (rewriting history, which is bad) or you can rename the file now. In both cases it should not come back without some user doing something specifically19:19
Kog|Work let me see if I can find the error message, but the short answer is I'm not sure19:19
SethRobertson Kog|Work: See !fixup for instructions19:20
gitinfo Kog|Work: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info)19:20
Kog|Work SethRobertson: we *did* rename the file, and it works fine on a clone or a hard reset to HEAD19:20
but not if you're catching up from a state where you're behind HEAD19:20
we could probably go back and amend that commit though19:20
SethRobertson Kog|Work: It should rename that file as part of the pull normally19:20
jast .search SethRobertson porn19:21
cybersphinx left19:21
jast hmm, it doesn't like you19:21
or I broke something19:21
SethRobertson I'm just that clean cut19:21
jast .search git19:21
gitinfo Git - Fast Version Control System <http://jk.gs/tmp/6> | Git - Fast Version Control System <http://jk.gs/tmp/7> | Git (software) - Wikipedia, the free encyclopedia <http://jk.gs/tmp/8> | ...19:21
Nibato left19:21
jast I suspect it's related to safe search19:21
qizwiz left19:22
Kog|Work bah, I can't find the error message and I've already reset my repo19:22
lame19:22
dp joined19:24
notola joined19:24
notola left19:24
dp if a git pull gets interrupted, does it start the transfer over from the beginning next time, or does it continue where it left off?19:24
SethRobertson restart19:24
cmn it needs to start again19:24
dp suck19:24
SethRobertson !resume19:24
gitinfo Git does not yet support resuming, torrenting, or parallel fetching of clones or other network traffic. Some people have successfully created bundles and then used torrents/resuming http download/etc to accomplish what they needed (possibly creating a reliable on-demand VM somewhere to do the initial download, bundle creation, and file hosting)19:24
alsasounda joined19:25
dp is there any potential plan for that stuff?19:25
alsasounda left19:25
j416_ joined19:25
SethRobertson Potential plans abound. Don't hold your breath19:25
jast plan, sure... but it's very complicated to implement that19:25
VERY.19:25
.search SethRobertson porn19:25
dp understood19:25
gitinfo .search: nothing found.19:25
jab416171|Cloud joined19:26
flavius left19:26
milki does pull restart only because it pulls in a single packed bundle?19:26
jast no idea why it doesn't find the results for that, but oh well19:26
Vinnie_win okay I have a working copy changes with a memory leak, and I'm on the "master" branch. Can I make a new branch, check it out, and then commit these working copy changes to it? Or will my checkout revert me to master HEAD?19:27
dp left19:27
SethRobertson !float19:28
gitinfo If you have made a change in your working directory and have NOT YET COMMITTED, you may "float" that change over to another (`git checkout oldbranch`) or new (`git checkout -b newbranch`) branch and commit it there. If the files you changed differ between branches, the checkout will fail. In that case, `git stash` then checkout, and `git stash apply` and go through normal conflict resolution.19:28
kevlarman Vinnie_win: git checkout -b newbranch;git commit19:28
Nibato joined19:28
j416 left19:28
jast .search multiple words19:28
gitinfo Multiple Meaning Words <http://jk.gs/tmp/9> | PATH%20WORDS <http://jk.gs/tmp/a> | E-Mail Newsletters: Increasing Usability (Jakob Nielsen's Alertbox) <http://jk.gs/tmp/b> | ...19:28
Vinnie_win okay the implication here is that none of these commands will cause me to lose data19:29
jast hmm. ah well. I'll just ignore that.19:29
SethRobertson How long does your URL shortener results last?19:29
rcu left19:29
kevlarman jast: i know the rules say that because SethRobertson exists, there must be porn of him, but that's taking it a bit far :P19:30
SethRobertson And "t" is shorter than "tmp"19:30
Sigma joined19:30
jast ah, found it19:30
SethRobertson: until the plugin/bot is restarted19:30
i.e. usually long enough19:30
Vinnie_win SethRobertson: Hey thanks that was really handy! Apparently I stumbled into a common use-case19:31
alx- left19:31
jast .search SethRobertson porn19:32
gitinfo Seth Robertson | LinkedIn <http://jk.gs/t/c> | Seth Roberts Photography - Richmond Wedding Photography, Richmond ... <http://jk.gs/t/d> | Beth Robertson, Real Estate Broker Sonoma County - Testimonials <http://jk.gs/t/e> | ...19:32
jast there we go!19:32
it works after all19:32
(but the 'porn' keyword is ignored due to safe search)19:32
Vinnie_win I thought I had a black belt in goofing off but apparently I have much to learn19:33
jast this is productive, actually19:33
I'm testing the new functions of the bot19:33
well, semi-productive :}19:33
tango_ .search giuseppe bilotta19:33
gitinfo Guiseppe Bilotta | Facebook <http://jk.gs/t/f> | Facebook - Giuseppe Bilotta <http://jk.gs/t/g> | Giuseppe Bilotta | Facebook <http://jk.gs/t/h> | ...19:33
tango_ not even remotely19:33
felideon left19:33
jast well that's useful, isn't it :)19:34
rcp-ca joined19:34
jast thank facebook for indexing everything a billion times19:34
it's not like my name is likely to fare any better...19:34
.search jan krüger19:34
gitinfo Welcome To Hearthside Quilters Nook - Quilt Lectures ... <http://jk.gs/t/k> | Welcome To Hearthside Quilters Nook - Quilt Lectures Quilting ... <http://jk.gs/t/m> | RA: Jan Krueger <http://jk.gs/t/n> | ...19:34
alexim left19:35
denysonique__ left19:35
jast I wonder what this does...19:35
.info git-scm.com19:35
gitinfo .info: nothing found.19:35
jast ah, okay...19:35
.info weather in aachen, germany19:35
gitinfo .info: nothing found.19:35
Vinnie_win .search Vinnie Falco19:36
gitinfo Facebook - Vinnie Falco <http://jk.gs/t/o> | Interview: Vinnie Falco, Creator of BearShare <http://jk.gs/t/p> | Vinnie Falco - Pipl Profile <http://jk.gs/t/q> | ...19:36
jast it doesn't like the 'in', apparently19:36
.info whois git-scm.com19:36
gitinfo .info: nothing found.19:36
jast aww19:37
it claims to support that19:37
but apparently not via ZCI19:37
davpoind left19:37
arti_t left19:37
jast .info U+1AF4919:38
gitinfo .info: nothing found.19:38
nikuyoshi joined19:39
kaitocracy joined19:39
jast the reference doesn't say which ones are available via the API and which ones aren't19:39
kaitocracy help I had a repo with two branches: 'master' and 'original'; I pushed it to Github, but I forgot to push my 'original' branch to github; at some point I deleted the repo off my local disk, when I pulled it again from Github my 'original' branch was gone; how can I recover as much of the 'original' branch as possible?19:40
jast kaitocracy: well if you deleted your local repo completely, where do you expect traces of the branch to be left?19:40
edwardbc_ left19:40
jast I mean, the branch didn't get pushed after all19:41
Vinnie_win check the recycle bin19:41
kaitocracy jast: but see if I look on here https://github.com/Kiwilight/System-Pkgbuilds/network, the other branch is clearly visible19:41
gitinfo set mode: +v19:41
rbrooks joined19:42
rcp-ca I'm building git-1.7.9.4 on a wayback machine - Fedora Core 4 i386 - and have a test failure: "not ok - 31 ref name 'heads/foo' is invalid" in t1402-check-ref-format.sh. Anyone got pointers before I did into the code?19:42
Vile left19:42
tatsuya_o joined19:42
sebrock left19:43
jast kaitocracy: that's not what you're seeing there. you're seeing everything that you merged from original to master, i.e. only stuff that's part of master.19:43
nikuyoshi left19:43
kaitocracy jast: yeah that's fine, I mean I don't expect ot recover the whole branch, what's shown in that graph is good enough; but I want it as a separate branch19:43
jast kaitocracy: just create original as a copy of master. that's all you can do, really.19:44
tatsuya_o left19:44
DrNick2 joined19:44
tatsuya_o joined19:44
DrNick left19:45
mjt joined19:45
khmarbaise left19:45
linusoleander left19:46
khmarbaise joined19:46
lindenle_ left19:47
alexim joined19:47
j416_j41619:47
Sigma left19:49
spiette_ joined19:50
spiette_ left19:50
gnufied left19:50
enmand left19:52
boonrumor left19:52
pantsman joined19:53
pantsman left19:53
pantsman joined19:53
mjt hello. I was in a middle of a rebase -i but forgot about it, and went to a entirely different place for some bisection. Now i - seemingly - returned "back" and did a 'git rebase --continue', but the result was that i went to a very old version of my patcheset.19:53
ipalaus joined19:53
jast mjt: you're now – to use a technical term – screwed. best to use 'git rebase --abort' if you can, or otherwise reset to the previous state of things19:54
harshpb left19:54
mjt the thing is -- rebase completed19:54
jast right, so that second part :)19:54
BryanRuiz11 joined19:55
mjt i see some git hashes in the terminal still19:55
jast look at 'git log -g'19:55
actually,19:55
look at 'git log -g <your branch>'19:55
BryanRuiz1 left19:55
jast that'll show you the last bunch of values of the ref19:55
one of those should be the commit that was on the branch before you started the rebase19:56
marcuy_ left19:56
jast (is that branch still active, i.e. checked out, by the way?)19:56
mjt gosh, that's alot of stuff... :)19:56
subh left19:56
churp joined19:56
marcuy joined19:57
rcu joined19:57
mjt um19:57
patrick99e99 joined19:57
rcu left19:58
patrick99e99 so I did a auto-merge pull request on github, and see that the history has an additional commit for the merge added to it... I thought I might be able to do git rebase HEAD^2 -i and squash that last commit into the previous, but it didn't even list it... Is there any way to do this?19:58
mjt okay, i found my patchet, which is somehow detached now19:58
rcu joined19:59
mjt as one of the hashes still on the screen.19:59
branch - as i said - contains some very old version of it19:59
so it looks like everything's allright19:59
wroathe The company I work for is using a new workflow with pull requests and bug branches and they want everyone to branch off of production and then open a pull request for production19:59
If I accidentally branched off of master and pushed it19:59
mjt wow20:00
wroathe how could I remedy it so that branch is off of production and not master20:00
Without deleteing and re-pushing the branch20:00
Shusshu joined20:00
Shusshu left20:00
jast left20:01
erickr joined20:01
cmn you have to rewrite the branch anyway20:01
you can rebase20:01
noisebleed left20:01
cmn but that means rewriting the branch20:01
jast joined20:02
Fandekasp joined20:03
n1x left20:04
p3rror joined20:04
sq-one left20:05
Ryback_ left20:06
bitkiller left20:07
Nik05 joined20:07
griotspeak left20:08
pandeiro left20:08
subh joined20:09
tvw left20:11
erichynds left20:12
fisted_ joined20:12
griotspeak joined20:12
adman65 joined20:13
fisted left20:13
Vile joined20:15
j416 left20:16
axl__ joined20:19
boombatower joined20:20
axl_ left20:22
ceej left20:22
Raging_Hog left20:24
juvenal left20:24
joshsmith left20:25
ericdc left20:26
Cromulent left20:26
ChanServ set mode: +v20:26
`Assassin joined20:27
defts left20:28
jameswarren joined20:29
iamjarvo left20:31
patrick99e99 so I did a auto-merge pull request on github, and see that the history has an additional commit for the merge added to it... I thought I might be able to do git rebase HEAD^2 -i and squash that last commit into the previous, but it didn't even list it... Is there any way to do this?20:33
dannas joined20:33
canton7 patrick99e99, do you know what "HEAD^2" means?20:33
apix_ joined20:34
patrick99e99 canton7: I thought it means two commits behind head ?20:34
jast no, that's what HEAD~2 means20:34
canton7 patrick99e99, it means the second parent of HEAD20:34
patrick99e99 aaaaaaaaaaahhh ooops20:34
so that was my problem?20:34
canton7 yup20:34
patrick99e99 dayum!20:34
gitinfo set mode: +v20:34
apix_ whats the git equivallent of "hg glog" ?20:35
jast note that rebase -i destroys merges20:35
apix_: what does "hg glog" do?20:35
apix_ its a glaphical log with all the commits20:35
command line graphical log20:35
jast !lol20:35
gitinfo git config --global alias.lol "log --oneline --graph --decorate"20:35
apix_ that includes all vranches20:35
*brances20:35
canton7 !lola20:35
awww :(20:35
jast sounds like the result would be hard to navigate20:35
canton7 git log --graph --oneline --decorate --all anyway20:36
also look at gitk20:36
jast or tig if you prefer the console20:36
apix_ ill check that tig and the git command20:36
cheers lads20:36
canton7 left20:37
drizzd joined20:37
canton7 joined20:37
CellKill left20:38
CellKill joined20:38
alx- joined20:38
tsdh left20:39
Kenjin left20:39
codeFiend joined20:39
griotspeak left20:40
codeFiend left20:40
rtuin joined20:40
mneorr joined20:42
griotspeak joined20:42
aspotashev joined20:43
aeontech left20:43
keystr0k left20:43
varnie joined20:46
tommcdo left20:47
LiohAu_ joined20:47
mneorr left20:47
linusoleander joined20:47
varnie I commited few commits and now I'd like to see what files exactly will be pushed if I enter 'git push origin/master'. is it possible?20:47
p3rror left20:48
dvide left20:48
ph^ left20:49
rtuin left20:49
CareBear\ git log -p origin/master.. #the trailing dots are important20:50
Ksugzulut left20:50
canton7 varnie, you probably meant 'git push origin master'20:50
jast varnie: git fetch; git log @{u}..20:50
if master is checked out, that is20:50
varnie yes, I got it. thank you20:50
MrMagic left20:53
alex__c2022 left20:54
y3di left20:55
craigntammy left20:55
canton7 left20:56
canton7 joined20:56
smw_ joined20:56
cyrou joined20:58
troyt left20:59
cannonball left21:01
p3rror joined21:02
n3m git seems to ignore the PATH set in my shell when calling the editor specified in core.editor.21:02
rcu left21:03
mrsrikanth left21:03
LmtdAt joined21:03
siprbaum joined21:03
y3di joined21:03
troyt joined21:04
canton7 left21:04
pom I don't exactly understand the reasoning behind submodules. Doesn't a deployment break if a sub repo is missing?21:04
canton7 joined21:05
adulion22 joined21:05
m1sc n3m: !repro21:06
gitinfo n3m: Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting.21:06
MestreLion left21:06
LmAt left21:06
varnie bye21:07
cjuner joined21:07
varnie left21:07
hobodave joined21:07
hobodave left21:07
hobodave joined21:07
joshsmith joined21:08
EricInBNE joined21:09
pdtpatr1ck left21:09
drizzd Hrm. Just fixed a bug only to realize someone else already fixed it 3 weeks ago, even though the bug has been there for half a year...21:09
Slix` joined21:09
pdtpatr1ck joined21:09
gitinfo set mode: +v21:10
PElshoff joined21:10
cyphase left21:11
y3di left21:11
Vinnie_win bug in what21:12
eletuchy joined21:13
anli_ joined21:13
anli_ Seems like I fail to push a repo to the server, I can commit locally, but the end server is not setup correctly21:13
(using tortoise)21:14
spaceonline left21:14
canton7 anli_> (using tortoise) <-- that's often a problem in itself. Any more details on the "seems like I fail to push"?21:15
anli_ I am trying to push to a .git file that is on a smb share21:15
canton7 push to a file? How does that work?21:15
anli_ I actually setup that before, at least it seemed like that, but now that "master" is not visible when trying21:15
Not file actually, sorry, its a .git directory21:16
But I still only have one master, the local one21:16
cyphase joined21:17
canton7 anli_, I'm afraid there's not nearly enough information there for someone to try and figure out what's going on21:17
marsilainen joined21:17
marsilainen is it common for 'push' to fail?21:17
anli_ If the remote repo is not setup, its common21:17
marsilainen I'm pushing changes up to a remote location, over webdav, and I often seem to get failures a number of times quite frequently21:18
kennethreitz joined21:18
marsilainen then I'll try again and it works21:18
when you say 'not setup' what do you mean?21:18
alester joined21:18
anli_ That I can only see the local repository21:18
marsilainen oh21:18
canton7 marsilainen, when you said "fail", what do you mean?21:18
anli_ That I have nowhere to push the changes21:18
Because that location is not setup correctly21:19
marsilainen canton7: I get output like:21:19
anli_ oh, sorry, I must be tired, you talked to marsilainen21:19
marsilainen sending 425 objects21:19
MOVE 4634ceadd647e8ccd6604de5a9c3b0bd5d29b7e8 failed, aborting (22/404)21:19
Updating remote server info21:19
fatal: git-http-push failed21:19
the actual command that it fails on can vary21:19
marthinal left21:19
marsilainen I have other connections to the server via ssh that stay fine during the entire time - so it doesn't just seem like a flaky network connection or something like that21:20
canton7 marsilainen, looks webdav-related yeah. I don't entirely trust it tbh21:20
marsilainen sure21:20
perhaps I'd be better off doing it over ssh then?21:21
gusnan left21:21
canton7 marsilainen, in almost all cases21:21
marsilainen ok, I'll give that a try and see if it performs better21:22
thanks21:22
Slix` left21:23
mattsa joined21:23
Slix` joined21:23
Slix` left21:23
canton7 anli_, i'm afraid there still isn't enough information. Can you tell us exactly what you're doing, and exactly what happens, and exactly how this differs from what you expect?21:23
Slix` joined21:23
anli_ Exactly what happens? I probably cannot tell that. What I want to do is to take my existing repo and push that to a remote repo, which is a bare .git directory21:24
Maccer left21:24
gusnan joined21:25
malkia joined21:25
texasmynsted1 joined21:25
proq joined21:26
anli_ Hm, trying to rename the dir with my working copy, is tortoise hindering me to do that?21:26
Some process uses that dir21:26
canton7 anli_, I wouldn't be surprised. It's generally a bit rather shit21:26
Maccer joined21:26
gitinfo set mode: +v21:27
offby1 anli_: unless you're already thoroughly familiar with git, I suspect that using tortoisegit is making your life harder, not simpler.21:27
tommyvyo left21:27
anli_ You all think I have choosen it myself, right?21:27
offby1 which I suppose is just a longer-winded way of saying what canton7 just said :)21:27
griotspeak left21:27
keller left21:27
offby1 anli_: yes, I probably am assuming that.21:27
It's not relevant, though. What's relevant is: if you can use the command line, you ought to give it a try21:28
anli_ The question whether tortoise git is a good choice or not is not my favorite topic at the moment :)21:28
offby1 surely you can install msysgit and try it?21:28
jigal joined21:28
offby1 is your machine so locked-down that you cannot?21:28
anli_ yes21:28
offby1 oh.21:28
I have little to offer, then, apart from sympathy.21:29
ibash left21:29
anli_ Hehe21:29
canton7 anli_, I was answering "Hm, trying to rename the dir with my working copy, is tortoise hindering me to do that?"21:29
jigal Hello i am using a submodule in my git repos. How can i make sure i have the latest version of this submodule?21:29
anli_ Thanks for not quoting what I am saying21:29
davpoind joined21:30
dzonder left21:30
anli_ Seems that the easiest way is to checkout the repo and drag files into the resulting working dir21:31
offby1 anli_: just out of curiosity: have you told whoever locked down your machine that they're making your job harder?21:32
madewokherd joined21:32
anli_ No21:32
adman65 left21:32
paul424 left21:34
empity joined21:34
anli_ But with that logic, I would need to speak with Torvalds as well21:34
Vile left21:35
luxurymode left21:35
ysawej joined21:35
MANCHUCK_ left21:36
mattsa left21:38
adulion22 left21:38
anli_ left21:39
wildalaskan left21:39
dannas left21:41
_iron left21:44
marsilainen left21:44
cespare jigal: The latest version of the submodule *specified in the parent repo* or the latest version of the submodule repository that exists?21:45
erichynds joined21:46
martinjlowm joined21:46
eletuchy left21:46
jangell left21:49
Jackneill joined21:49
FernandoBasso joined21:49
de joined21:50
CareBear\ anli_ : add a remote which refers to your .git directory on the smb server21:50
anli_ : I think the URL must be a URL and that a simple z:\folder may not work21:51
offby1 forward-slashes might also help21:51
aspotashev left21:52
necromancer you know how there's the foo bar?21:53
i think we should have a git pub21:53
Jackneill left21:53
stkrzysiak left21:53
joshsmith left21:54
n1x joined21:54
s0ber left21:54
aspotashev joined21:54
CareBear\ I'll have a burger and a pint, please21:54
lyddonb left21:55
xrated left21:55
dv310p3r left21:55
dannyanderson left21:56
s0ber joined21:56
axl_ joined21:56
mabrand left21:58
spiette left21:58
offby1 haw21:58
juanfer left21:59
offby1 necromancer: or even a "git hub" -- a lounge, bar, meeting place21:59
john2496 left21:59
offby1 crazy21:59
diegoviola left22:00
axl__ left22:00
necromancer yeah we should probably have a book of faces of people who come by often22:00
maybe we could call it a "face book" of sorts22:00
brb im gonna go hang out with some girl coders22:01
in the git tub22:01
iocor left22:01
ehsan left22:02
axl_ left22:02
pfFredd joined22:02
de left22:03
wroathe left22:03
apix_ left22:04
digitalfiz left22:04
Nik05 left22:05
ology left22:05
texasmynsted1 Could somebody recommend a link or a book for git best practices, especially for a large organization? (I have seen some sites, etc. But git has been around long enough to have some good best practices.)22:06
SethRobertson !best_practices22:06
gitinfo There is no one right answer for git best practices, but a consensus from #git is available at http://sethrobertson.github.com/GitBestPractices/22:06
offby1 texasmynsted1: well "gitflow" is one22:06
Nugget Don't mess with Texas.22:06
offby1 !gitflow22:07
gitinfo The description of the gitflow branch workflow model is at http://nvie.com/posts/a-successful-git-branching-model/, while a tool to help implement this workflow is at https://github.com/nvie/gitflow See http://sethrobertson.github.com/GitBestPractices/#workflow for other workflow suggestions/references22:07
texasmynsted1 Nugget, that is good advice.22:07
offby1 SethRobertson: somehow I'd never come across that before; thanks22:07
offby1 reads eagerly22:07
texasmynsted1 Thank you offby122:07
iocor joined22:08
marcogmonteiro joined22:08
texasmynsted1 et al22:08
axl_ joined22:09
shruggar joined22:11
phlogisto joined22:11
_iron joined22:11
warthog9 joined22:11
phlogisto hey guys! I accidentaly pushed something bad to master. How can I revert the changes?22:12
p3rror left22:13
wereHamster you push the old commit to master22:14
offby1 !fixup22:14
gitinfo So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info)22:14
ddv left22:14
RaceCondition joined22:14
churp left22:14
empity left22:15
cybersphinx joined22:15
Dave^| left22:17
offby1 this Seth Robertson fellow is prolific22:17
phlogisto gitinfo: wereHamster: thank you guys!22:17
gitinfo phlogisto: you're welcome, but please note that I'm a bot. I'm not programmed to care.22:17
the_cybersphinx left22:17
duckx left22:19
wereHamster Y U no care?22:20
!botsnack22:21
gitinfo Om nom nom22:21
kermit left22:21
jast wereHamster: that won't make it care, either! mwahaha!22:22
localhost joined22:22
boombatower left22:23
beatak left22:23
Atlantic777 joined22:23
aspotashev left22:24
pantsman left22:25
texasmynsted1 left22:25
deavid i need a bit of help with "git svn clone"22:26
thursday joined22:26
iocor left22:26
deavid guess what, i forgot to add the "-s" switch to svn clone, and i got a repo with the folders trunk/ tags/ and branches/22:27
p3rror joined22:27
deavid i want to fix that. But i spent hours cloning 2000+ revisions from svn that i already have in my local machine22:27
wereHamster clone again while adding -s22:27
cbreak deavid: yeah. You can try to manually fix it22:27
FauxFaux It'll be much, much slower.22:28
cbreak but you'll spend days on it22:28
deavid yeah, but i can do anything to avoid downloading...22:28
ouch22:28
cbreak well then22:28
anything? :)22:28
then do the git svn clone on the server22:28
deavid sure? so guess is better to clone again :-( :-(22:28
cbreak it'll be faster22:28
deavid it's not mine :-P22:28
cbreak hire someone to steal the hard disk22:28
wereHamster maybe you can try svnsync the repo first and then git svn clone that22:28
deavid is a server with a slow internt conection22:28
wereHamster git svn clone is restartable. so you can stop and continue at any time22:29
aspotashev joined22:29
phlogisto !fixup_hints22:30
gitinfo Hints for fixing commits are: (1) NOT PUSHED/PUBLISHED: `git rebase -i $COMMIT^` or perhaps `git commit --amend` (or `git reset HEAD^`). (2) OTHERWISE, `git revert $COMMIT` to make a reverse commit. (3) If you have pushed and MUST remove it, use rebase or filter-branch and type !rewriting_public_history in IRC.22:30
cyrou is there an equivalent to git svn clone for CVS :s22:30
phlogisto !rewriting_public_history22:31
gitinfo Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config)22:31
cbreak maybe there's a cvs fast export22:31
kadoban left22:31
wereHamster cyrou: cvsimport22:31
cyrou ah, okay22:31
wereHamster git-cvsimport22:31
subh left22:31
cyrou does that bring histories too?22:31
kadoban joined22:32
wereHamster yeah22:32
fly9 left22:32
deavid ok, i give up. I'll clone again with -s. Guess i have all the night to get that22:33
kadoban_ joined22:33
seanh left22:33
phlogisto left22:34
yizumi joined22:34
jason237 left22:34
RaceCondition left22:35
cakehero left22:36
scelis left22:36
iocor joined22:37
marcuy_ joined22:38
seanh joined22:39
rendar left22:40
Frederik joined22:40
gitinfo set mode: +v22:41
Frederik Hi22:41
gitinfo Frederik: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.22:41
ph^ joined22:42
Frederik I could use some help with git..22:42
marcuy left22:42
kermit joined22:42
Frederik I need to know how I can update my repository from the "master" repository..22:42
AaronMT left22:43
Frederik Is that possible?22:43
cbreak from the origin repository?22:43
git remote update will get remote infos22:43
linusoleander left22:44
subh joined22:45
Cromulent joined22:45
Frederik Yea.. Well I'll try to explain what I have done so far..22:45
jigal why are the DoctrineORMModule files not downloaded from github? http://pastebin.com/uEiyF9gB22:45
alester left22:46
RaceCondition joined22:46
jast jigal: was there already already a repository in the target location?22:47
Frederik I forked the project https://github.com/woothemes/woocommerce.git. This created a new repository (https://github.com/my_username/woocommerce.git). In the Git GUI I cloned the newly created repository. Then I added a "remote" called upstream to the source https://github.com/woothemes/woocommerce.git22:47
preflex left22:47
Frederik What is the next step?22:47
jigal jast, no22:47
jast, i deleted it before22:47
patrick99e99 left22:47
jast jigal: by the way, 'git submodule add' doesn't accept a --recursive option AFAIK22:48
FauxFaux Frederik: git pull upstream master22:48
Frederik To synchronize the original repository with my repository..22:48
Is there anything else??22:48
jigal jast, ok so what should i do to get it as a submodule22:48
alberto56 left22:48
FauxFaux Frederik: Do you want to publish your update? If so, you should publish it like any other set of commits.22:49
preflex joined22:49
jast jigal: try git submodule update --init22:49
Fhsrap left22:49
erickr I just pushed a local branch to remote origin, as a feature branch. But my local branch doesnt seem to track that remote branch automatically. What do I need to do to track it?22:49
alberto56 joined22:49
jast erickr: -u option to push on next push, or git branch --set-upstream22:49
jigal jast, for now i removed the submodule how do i start again ?22:49
Frederik i tried to merge the two repositories, and when I pushed the commit button it "updated" my local personal repository on github22:49
hobodave left22:50
manithree joined22:50
ptn777 joined22:50
FauxFaux Frederik: "local personal repository on github" makes no sense.22:50
jast yeah, github isn't exactly local22:50
Frederik Sorry not local :( but the repository linked to my account. But when I then tried to push my own updated files from my repository to the original one, it would commit all the commits that I updated from the original one..22:51
Atlantic777 left22:52
WillMars_ joined22:52
Frederik I apologize but I'm totally new to git/guthub22:52
jast Frederik: to be able to push directly to the original repository, you need push access to it22:52
cyrou left22:52
jast that's the whole reason why you need to fork... because you don't have push access22:52
erickr jast: tried that but get, Branch origin/Feature903-new-drop-down-menu set up to track local branch Feature903-new-drop-down-menu.22:52
feels like it should be the other way around..22:52
jigal jast, how to start again from 022:52
jast a common way to let the original maintainer know about the changes in your fork is to send a pull request via git's interface22:52
err, github's interface22:52
erickr: the proper syntax is: git branch --set-upstream foo origin/foo22:53
heppy joined22:53
jast jigal: just doing the add again should do it... then again it should have done it before, too22:53
erickr jast: ahhh..22:53
martinjlowm left22:53
Frederik Yea I know. I have only read permissions, so I should push to my own repository and then make a pull request.. But the thing that confuses me, is the thing that after the update, it would commit alle updated files..22:54
erickr jast, I get, warning: refname 'origin/Feature903-new-drop-down-menu' is ambiguous.22:54
fatal: Ambiguous object name: 'origin/Feature903-new-drop-down-menu'22:54
Frederik Update from original --> my repository --> the original again..22:54
jast erickr: yeah, your first try broke it ;) do a 'git branch -d origin/Feature903-new-drop-down-menu' first22:54
cbreak what do you mean with update?22:54
git remote update as I wrote above?22:55
_iron left22:55
jigal jast, but then i won't get the recursive files from this submodule22:55
jast jigal: you should. otherwise something very weird is going on.22:55
erickr jast, says its not found.. :)22:55
eletuchy joined22:55
Malar joined22:55
jast erickr: gah... does 'origin/Feature903...' show up in "git branch"?22:56
Frederik I fetched the original repository, then merged it with my local files. The local files I comitted/pushed to my personal git repository.22:56
jigal jast, how can i find out22:56
TeckniX left22:56
ipalaus left22:56
cbreak Frederik: no, git merges with branches, not files22:56
erickr jast: no, just the Feature903-new-drop-down-menu without origin/22:56
cbreak so if you merged an other branch22:56
jast jigal: sorry, based on what you pasted earlier I have no idea what's going on22:56
cbreak then you only have to commit yourself if there were conflicts22:56
after resolving them22:56
jigal jast, how can i give you more info22:56
luke-jr joined22:56
cbreak otherwise it'll commit automatically22:56
luke-jr Does git check for integrity while receiving objects from a push?22:57
LiohAu_LiohAu22:57
cbreak also, you can not push files with git22:57
you can only push history (commits)22:57
Frederik Then I added an update to my personal repository. Then I wanted to make a pull request to the original repository, but it would make a pull request on 69 files instead of the 2 files I edited..22:57
jast erickr: does this give you more than one line: git show-ref origin/Feature903-new-drop-down-menu22:57
tvw joined22:57
Frederik hmm..22:57
jast luke-jr: yes, by design. corrupted objects are automatically invalid.22:58
Frederik I just wanted to know how to do it right..22:58
_iron joined22:58
edude03 joined22:58
luke-jr I keep getting corrupt objects :/22:58
TeckniX joined22:58
jast luke-jr: RAM fault? or frequent power losses22:59
cbreak Frederik: pull requests are not on files22:59
they are on history (commits)22:59
luke-jr is it possible for a packed object to be corrupt?23:00
cbreak maybe you can make cherry-pick requests or so23:00
luke-jr: sure it is23:00
jast luke-jr: sure, if the pack file is corrupted23:00
luke-jr hmm23:00
TeckniX left23:00
luke-jr mine are always unpacked objects23:00
cbreak just edit it with a hex editor23:00
and you can corrupt anything23:00
luke-jr cbreak: right, but I mean woudl git notice?23:00
MestreLion joined23:00
cbreak sure it would23:00
if you fsck23:01
jast luke-jr: it'll notice whenever the object is access23:01
ed23:01
luke-jr would git gc access it?23:01
cbreak as soon as the hashes don't match anymore git will complain23:01
jast Frederik: check on github to make sure that your commits contain only the changes you wanted... go to the 'commits' tab on the github interface for your repo and look at the individual changesets23:01
git gc would definitely access it23:01
erickr jast, gives one return23:02
kerrick left23:02
Frederik Is the right way to do it to run the "git pull upstream master" and then push the files I edit?23:02
jast erickr: that's weird, because then that command has no business complaining about ambiguities...23:02
erickr mm..23:02
jast Frederik: to do what?23:02
erickr is it that my local branch is named the same perhaps?23:02
jast Frederik: push only uploads commits, not uncommitted changes23:03
MestreLion is it normal for an email sent to the list take > 10 minutes to show in rss/web interface?23:03
Frederik To be sure that the repositories are syncronized..23:03
luke-jr any way to get git gc or fsck to report *all* corrupt objects at once?23:03
jast erickr: is your local branch named 'origin/Feature903...'? no it isn't ;P23:03
aspotashev left23:03
luke-jr rather than fsck, fix, fsck, fix23:03
jast MestreLion: yes, because greylisting23:03
Frederik So first I'll make the commit..23:03
erickr jast: only Feature903...23:03
Frederik and then push?`23:03
erickr jast: not the origin-part..23:03
jast erickr: yeah, that's a different name. so no ambiguity.23:03
erickr jast: I'll try to checkout with a different name,..23:03
jast erickr: just to be sure, what's your git version? (git --version)23:03
MestreLion jast: Oh... I thought the list wasn't moderated23:04
jast MestreLion: has nothing to do with moderation23:04
chrisgeorge left23:04
jast it's an automatic process23:04
erickr jast: 1.7.923:04
jast erickr: okay. definitely new enough. :)23:04
erickr jast: yes, upgraded fairly recently..23:04
jast erickr: does "git rev-parse origin/Feature903..." give you the same complaint?23:05
Frederik I'll see if I can google something out.. Thank's for the support so far :)23:05
aspotashev joined23:05
MestreLion jast: I've sent the doc patch... when it pops in, any feedback from you guys would be greatly appreciated23:05
jast Frederik: if you want to publish changes, then yes, commit them and then push.23:05
erickr jast: only a sha123:05
jast: i checked it out with another name with git checkout -b localname origin/remotebranch and that seems to work..23:06
josx joined23:06
manithree left23:06
fayimora joined23:07
Frederik jast: Thx. Can you easily explain how I should deal with it if the "original" repository update something. So my local files and my repository get's updated?23:07
explodes joined23:07
explodes Production emergency!23:07
Frederik jast: and still be able to push commits?23:08
cbreak fast! Charge the shield emiters!23:08
and depolarize the dilithium core!23:08
ptn777 left23:08
explodes I have local code (from another developer) that is broken and was cleared to be pushed onto the master branch, and pushed to production23:08
john_anderson left23:08
explodes I need master to be reset to commit 1a5f14fd403faedf22da94937aaf90cfb36e90dc23:08
FauxFaux Did everything explodes?23:08
kadoban left23:08
FauxFaux explodes: !fixup23:08
gitinfo explodes: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info)23:08
explodes How do I do this :S23:08
jast Frederik: that's precisely the reason(s), yeah :)23:08
kadoban_ left23:08
explodes !fixup_hints23:08
gitinfo Hints for fixing commits are: (1) NOT PUSHED/PUBLISHED: `git rebase -i $COMMIT^` or perhaps `git commit --amend` (or `git reset HEAD^`). (2) OTHERWISE, `git revert $COMMIT` to make a reverse commit. (3) If you have pushed and MUST remove it, use rebase or filter-branch and type !rewriting_public_history in IRC.23:08
kadoban joined23:08
kadoban left23:09
explodes Guh.23:09
Frederik jast: thx.. I'll try it out :)23:09
kadoban_ joined23:09
Frederik exit23:09
Frederik left23:09
jast erickr: I'd just try the same --set-upstream command again. if it fails again, I'd like to see the exact command just to make extra sure there isn't anything else wrong with it :)23:09
cbreak explodes: you can rewrite any history you want if you're prepared to deal with the fallout23:09
explodes i am not23:10
cbreak for example with git reset --hard 1a5f1423:10
SethRobertson Perhaps you should send someone in here who is prepared to deal with the fallout23:10
cbreak explodes: then you can just make new history with revert23:11
just git revert the commits that did bad things23:11
SethRobertson or just checkout that SHA and do whatever you do to publish that code to production23:11
Destos left23:12
JJasonClark left23:13
apok_ left23:14
whitman left23:15
mister_m left23:16
erickr jast: well, what do you know..23:16
jast: now it worked..23:16
subh left23:16
erickr jast: strange..23:17
jast erickr: let's just both whistle and look innocent23:17
erickr I typed the exact same command before,23:17
according to history23:17
jangell joined23:17
erickr I did switch to master and pulled before this last attempt though, if that might have done any difference..23:17
jast not that I can think of23:18
blacktulip left23:18
erickr jast: this is the commands, http://pastebin.com/MRwkCr8t23:19
oh well, thanks anyway.. :)23:19
jast erickr: #1996 seems weird :)23:20
ah well, the history is pretty messy at this point. let's just pretend nothing weird ever happened... much easier to understand that way23:21
explodes left23:21
CannedCorn left23:22
dreiss left23:22
Chillance left23:22
CareBear\ how to find out if a merge will be fast-forward without actually doing the merge?23:23
cbreak CareBear\: you can rev-list with the correct arguments23:23
if theirs..yours is empty, then it'll be ff23:24
offby1 CareBear\: interesting question. I just go ahead and do it, and "git reset --hard HEAD^" if I don't like the result.23:24
cbreak you can do merge --ff23:24
if you want to attempt it23:24
offby1 smacks forehead23:24
offby1 of course.23:24
CareBear\: what cbreak said.23:24
CareBear\ mh, no, merge --ff creates a merge commit if neccessary23:25
PElshoff left23:25
CareBear\ --no-ff creates a merge commit always23:25
cbreak --ff-only of course23:25
EvanR left23:25
CareBear\ aha! once again my old man pages betray me!23:25
man git-merge23:25
gitinfo the git-merge manpage is available at http://jk.gs/git-merge.html23:25
yoklov left23:25
dfr|mac left23:28
alexim left23:28
Davey_ joined23:28
Sigma joined23:29
alberto56 hi, does anyone kwno if it's possible to have a fallback git submodule remote address, so that if someone doesn't have access to the submodule through its principal URL, one can still run git submodule update and have access to the submodules in read-only form; but devs will be able to modify and push submodules. Cheers.23:29
cbreak alberto56: just put the read-only ones into .gitmodules23:30
the devs can just set a custom url in the .git/config23:30
davpoind left23:30
cbreak or just manually fetch/reset inside the submodule23:30
you can git-remote-add in submodules and then use them like a normal repo23:31
kevlarman alberto56: generally you don't want to try to develop inside a submodule anyway23:31
eletuchy left23:31
alberto56 cbreak sounds good. So by default, the submodules is readonly for anyone. Thanks!23:31
fayimora left23:31
cbreak submodules are designed to be read only23:32
Russell^^ left23:32
cbreak you can use them if you commit to them, just be aware of the problems23:32
cordoval joined23:32
shruggar left23:32
alberto56 kevlarman cbreak thanks, makes sense. But in my case I'm starting many submodules from scratch on a big project so it's practical de develop them together, if that makes sense.23:32
cordoval hi guys i was doing some cherry-picking but now my console has this label23:33
~/sites-2/vespolina_sandbox (master *+|CHERRY-PICKING)23:33
and I don't know what to do to go back to normal23:33
n1x left23:33
cordoval what can I do?23:33
cbreak maybe gitslave is better for your usecase23:33
CannedCorn joined23:33
cbreak cordoval: git status?23:33
cordoval what do you mean git status23:33
it modified a file23:33
cbreak maybe cherry-picking failed and you have to resolve the conflict and then commit. read git status for details23:33
kevlarman cbreak: it will keep getting its HEAD detached though, more practical to use a separate clone to develop it23:33
cordoval and there seem to be some conflict but git merge --abort git cherry-pick --abort does not work23:34
how to abort thouugh23:34
cbreak kevlarman: nah, you can switch to a branch if you want23:34
you just can't use submodule update :)23:34
cordoval cbreak: how to abort a cherry-picking?23:34
kevlarman cbreak: exactly23:34
alberto56 cbreak thanks for your help, I'll look into git slave.23:34
cbreak cordoval: git reset --hard the stuff away?23:34
and afterwards, maybe delete CHERRY_PICK_HEAD23:35
shuffle2 left23:35
cordoval thanks cbreak23:35
you rock23:35
what is the best way to cherry-pick, I am trying to get some of the latest commits from a repo and go one by one discriminating, even using git cola that shows the commits but I feel like there should be a better bookkeeping tracking safer smarter way23:36
Prudhvi joined23:36
iivvoo left23:36
shruggar joined23:36
cbreak imho, the best way is to not do it23:36
airborn left23:37
cordoval why not cbreak also trying this ~ git log --not upstream/master but it seems something is not working23:37
missing23:37
cbreak hmm?23:37
your understanding is missing23:37
git cherry-pick duplicates commits23:38
you do NOT get commits from somewhere else23:38
you just get their effect and meta copied23:38
if you want to get commits from somewhere, use merge, or rebase onto it23:38
cordoval right but at least i want to see which commits to cherry pick23:38
and that is the difference23:38
cbreak if you want to continue using cherry-pick to copy commits23:38
then use git cherry to see which you already have23:38
alexim joined23:38
cbreak note that this uses a heuristic23:38
git log is not usable for that23:39
PsiliPharm joined23:39
cbreak git log assumes sane histories :)23:39
cordoval cbreak: i cannot rebase as i don't want all23:39
i did not know git cherry23:39
it seems powerful and just what i needed23:39
it is not so popular, wonder why23:39
maybe then i wonder if i can do single commit merges?23:40
git merge sha123:40
is that valid?23:40
but I don't want to go one by one23:40
cbreak cherry-pick is a mess23:40
merging merges history23:40
cordoval and cherry?23:41
I mean the problem i am trying to resolve is23:41
I am parting my ways from a popular repo23:41
but i need to eventually copy cheat on some of their commits23:41
Per4u3e joined23:41
cordoval as some things are related, so the question is how or what is the best way for doing this23:42
ph^ left23:42
Chib joined23:42
__machine when i do git svn dcommit, git seems to hard reset to the latest commit, then mixed reset to the svn tip and progressively put changes into the index and commit... but if a 3rd party commits to svn during my dcommit (e.g. 15 commits in our of 30)...23:42
git tells me that i need to rebase but i cant rebase because there are working copy changes that need to be committed or stashed... but those changes are already committed... and dont need to be stashed... why does git leave these files in the working copy, and not automatically just cleanup the working copy, rebase again and continue dcommit?23:42
cordoval cbreak: I actually want the inverse of git-cherry - Find commits not merged upstream23:42
i want git-uncherry - Find commits not merged downstream23:43
Cromulent left23:43
cbreak __machine: git svn dcommit includes git svn rebase23:43
drizzd __machine: you're asking why git does not irreversibly delete files from your working copy?23:43
rchavik joined23:44
rchavik left23:44
rchavik joined23:44
cbreak cordoval: and what do you think it does?23:44
shruggar left23:44
williamcotton left23:45
drizzd __machine: so you are in the middle of an aborted dcommit? What does git name-rev HEAD say?23:45
rchavik left23:45
rchavik joined23:46
cordoval cbreak: by its description I think it only outputs the commits that are upstream but not downstream23:46
mishok13 joined23:46
Exposure_ left23:46
__machine drizzd: the files are NOT local changes that need to be stashed or committed... i ALREADY did git svn rebase... then... during dcommit... git puts files in the working copy itself (not me)... if a commit to svn happens during my dcommit... git says it needs to rebase again, but that it cant because of working copy files...23:47
NyB_ joined23:47
__machine drizzd: im saying git should be smart enough to know that the files in the working copy that it is currently trying to dcommit are put there by git, not the user, and nothing will be lost by removing them, and git should be able to rebase23:47
drizzd __machine: ok, I thought you needed help. Never mind then.23:48
wroathe joined23:48
cordoval maybe someone knwos of a tutorial for git cherry?23:48
i just skim git cherry --help but ...23:49
cbreak cordoval: I don't get your problem23:50
upstream is just a name23:50
you can say that your branch is upstream23:50
and the other one is the other one.23:50
mister_m joined23:50
kremiak left23:50
k6b left23:50
__machine drizzd: here's the log... http://dpaste.com/717189/23:50
k6b joined23:50
k6b left23:50
cordoval right cbreak, just hard to get my thoughts match the reverse23:50
ScottE left23:51
cordoval I am so accustomed to names matching stuff :D23:51
cbreak it matches. It's just a matter of perspective23:51
drizzd left23:51
__machine drizzd: r10809-108220 and r10822 are svn commits made by git svn dcommit for my local commits... and r10821 is a commit made by a 3rd party while my dcommit was in progress...23:51
cordoval right I have a slow changing perspective cbreak23:52
that is why a tutorial can be helpful :D23:52
dv310p3r joined23:52
Exposure joined23:52
cordoval or a blog post23:52
ScottE joined23:52
tatsuya_o left23:53
EugeneKay !blog23:54
gitinfo Blog posts, while helpful and informative, are quite often outdated, give bad advice, or are just plain wrong. Please don't rely solely upon them, or treat them as authoritative.23:54
josx left23:54
fayimora joined23:55
mythmon how can I revert all commits between some commit abcdef and HEAD?23:55
EugeneKay man git-revert; it takes multiple <commit> parameters.23:55
gitinfo the git-revert manpage is available at http://jk.gs/git-revert.html23:55
L42y left23:55
mythmon i tried that, and it gave me conflicts.23:56
enmand joined23:56
Dragooon left23:56
mythmon also, is there a way i can give a range of commits, instead of each manually?23:56
EugeneKay If abcdef is the commit you want the current state to be at you can checkout abcdef and then commit -a, or reset --hard abcdef then reset --soft to what used to be your HEAD.23:56
See also !fixup23:57
gitinfo So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info)23:57
tatsuya_o joined23:58
warthog9 left23:58
mythmon i want to make a commit that undoes everything in the range. will those two do that?23:58
ie: no rewriting history.23:58
EugeneKay reset will make it exactly as it was at abcdef, effectively an "undo"23:59
mythmon thats not what i want.23:59
hmm, i was able to revert them all in a bunch of commits, now i just need to squash them23:59

Logs Search ←Prev date Next date→ Channels Documentation