IRCloggy #git 2021-10-05

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.

2021-10-05

gordonfish- joined00:00
gbrlsnchs left00:00
natrys left00:01
Nitronix joined00:01
gordonfish left00:02
nx_ joined00:04
Nspace joined00:05
Nitronix left00:07
Xenguy joined00:08
Nspace left00:10
Nspace joined00:10
jwillikers joined00:10
athar_ joined00:12
imMute devslash: looks right to me00:13
athar97 left00:15
pretty_dumm_guy left00:17
durham left00:27
tirnanog left00:27
bambanxx joined00:29
durham joined00:30
christall left00:31
emf joined00:39
chenqisu1 joined00:39
durham left00:40
durham_ joined00:40
nx_ left00:44
emf left00:50
drew joined00:54
MrC joined01:02
gordonfish- left01:03
jetchisel joined01:06
nrg left01:08
Nspace left01:16
bambanxx left01:27
bambanxx joined01:28
christall joined01:29
drew left01:33
Yruama left01:34
drew joined01:37
gordonfish joined01:46
CSWookie left01:51
alzgh left01:53
stkrdknmibalz left01:56
igemnace left01:58
christall left02:01
vicfred left02:01
mat001 joined02:03
stkrdknmibalz joined02:04
mat001 left02:08
drew` joined02:14
drew left02:14
drew`drew02:14
JibStyle joined02:17
JibStyle left02:27
jwillikers left02:29
chenqisu1 left02:30
brw joined02:37
nrg joined02:38
relight joined02:46
FinnElija left02:57
christall joined02:59
FinnElija joined02:59
gordonfish left03:01
JibStyle joined03:02
drew left03:03
gordonfish joined03:11
Murr left03:14
Murr joined03:14
athar_ left03:15
drew joined03:18
pulse left03:22
christall left03:27
R2robot left03:29
erich_zann joined03:31
durham_ left03:36
gordonfish left03:38
R2robot joined03:46
vysn joined03:47
zebrag left03:48
hqdruxn08_ joined03:54
hqdruxn08__ left03:58
drew left03:58
drew joined04:02
ChmEarl left04:03
Albright_ left04:06
Albright joined04:07
SpeakerToMeat__ left04:10
mat001 joined04:11
skapate joined04:14
skapate left04:14
skapate joined04:14
skapata left04:16
mat001 left04:16
erich_zann left04:18
gast0n left04:19
christall joined04:24
SpeakerToMeat__ joined04:28
drew left04:31
aniruddha joined04:35
ferdna joined04:39
madewokherd` joined04:44
saroy joined04:45
chenqisu1 joined04:47
madewokherd left04:48
ravan joined04:55
chenqisu1 left04:56
christall left04:57
chenqisu1 joined04:59
cambrian_invader left05:00
bambanxx left05:07
ravan left05:09
ferdna left05:11
cambrian_invader joined05:14
ravan joined05:17
ravan left05:18
ravan joined05:18
ravan left05:19
ravan joined05:19
JibStyle left05:19
nr0q_mobile left05:21
nr0q_mobile joined05:22
onizu joined05:25
JibStyle joined05:26
mexen joined05:29
Raguile left05:33
alkino left05:48
ttree left05:49
keypusher left05:53
christall joined05:54
ELFrederich left05:58
_xor left05:59
ELFrederich joined05:59
kenanmarasli joined05:59
jimklimov left06:03
Times_ joined06:08
Times_ https://www.bitchute.com/video/rUr0pnlyWRpD/06:08
zmt00 left06:12
Times_ left06:14
vishal left06:20
vishal joined06:23
lgc joined06:26
christall left06:26
jazzy left06:27
theoceaniscool joined06:29
jstein joined06:31
jstein left06:36
palasso joined06:36
hbautista_ joined06:39
hbautista left06:42
sudoforge left06:49
hendry hi, I'm struggling to fathom how to toggle between ssh Users here: https://gist.github.com/kaihendry/871acb439cd99738fc55c0a31406eacb does anyone know how to handle this? Basically I also need to occassional push to staging what's in development.06:51
jmd joined06:52
Anu joined06:52
srinidhi joined06:53
ttree joined06:56
SirRippovMaple left06:59
ajfriesen1 joined07:00
ajfriesen left07:00
ajfriesen1ajfriesen07:00
SirRippovMaple3 joined07:00
igemnace joined07:02
hbautista_ left07:03
unluckyshrubbery left07:04
bookworm hendry: several options, add a new remote with a different alias (meaning don't call them the same in your gist) then push to that. If that annoys you, you can push to any remote without actually having added it to a repo but the cli gets unwieldy07:05
ttree left07:06
rhe1 joined07:13
thiago left07:13
rhe left07:13
nr0q_mobile left07:13
rhe1rhe07:13
nr0q_mobile joined07:13
jkordani left07:14
drogas left07:14
hendry I am not sure how to alias. how could i alias one as "dev" and other "stg"?07:18
Techcable_ left07:20
Techcable joined07:23
christall joined07:27
vladoski joined07:28
JibStyle left07:28
_xor joined07:32
Samian joined07:32
osse git remote add07:32
hendry osse: how do you specify like a different ssh User though?07:34
osse use a different url07:34
Host dev07:35
Hostname git-codecommit.ap-southeast-1.amazonaws.com07:35
in .ssh/config07:35
and then you use dev as a shorthand for the url instead of the actual url07:35
JibStyle joined07:36
john_johnk joined07:36
JibStyle left07:37
JibStyle joined07:41
SpeakerToMeat__ left07:44
jimklimov joined07:45
hendry osse: oh... right07:46
cvmn joined07:46
jimklimov1 joined07:46
osse Or you cna simply got push actual-url-here master or whatever07:46
jimklimov2 joined07:46
hendry so my workflow will be something like, lalala dev dev dev. Commit. git push; # oh this is good; git push stg, right?07:47
osse something like that ,yeah07:47
jimklimov1 left07:50
jimklimov left07:50
john_johnk left07:51
christall left07:55
dayday Hello! Anybody know why I'm getting `fatal: could not parse 107bd5e70e` when attempting to `git rebase --continue` or `git rebase --abort`?07:57
txtsd joined07:59
chenqisu1 left08:00
SpeakerToMeat__ joined08:01
dayday It's probably because I ran `git reflog expire --expire=now --all && git fsck --full && git gc --prune=now` before I finished the rebase, my bad.08:02
Nspace joined08:03
dayday Is there a way to fix it though?08:04
I didn't take any backups :/08:05
aidalgol_ joined08:06
osse are you rebasing stuff you've pushed?08:10
dayday Nope, its just a personal repo08:11
tkazi left08:12
ferr_ left08:12
Duckle left08:12
rtjure left08:12
jinsun left08:12
jrm left08:12
dslegends left08:12
mw__ left08:12
cdown left08:12
weyhmueller_ left08:12
blmt left08:12
Trieste left08:12
hendry left08:12
omnigoat left08:12
vancz left08:12
ericnoan left08:12
malteger_ left08:12
terrorjack left08:12
jancoow left08:12
dmc left08:12
af left08:12
AlexKalopsia left08:12
Rhonda left08:12
SpacePlod left08:12
i7c left08:12
webstrand left08:12
justache left08:12
buffet left08:12
xkr47 left08:12
Anarchic left08:12
raffaele_ left08:12
themill left08:12
cation left08:12
nr0q_radio left08:12
warthog9 left08:12
xaxas left08:12
cbreak left08:12
flying_sausages_ left08:12
sahilister5 left08:12
wils left08:12
peirik_ left08:12
Jonno_FT1 left08:12
dysfigured left08:12
Oblomov left08:12
sunyibo_ left08:12
Tabmow left08:12
majors_ left08:12
hanneso_ left08:12
Artea left08:12
mingdao left08:12
PocketKiller left08:12
mthall left08:12
d1b left08:12
aidalgol left08:12
dgw left08:12
Ugrastil left08:12
tureba left08:12
mika left08:12
frobnic left08:12
Lcawte left08:12
osse I suspect you've managed to shoot yourself in the foot with a goddamn bazooka08:13
ravan left08:13
dayday git status says `interactive rebase in progress; onto 107bd5e` but `107bd5e` isn't a commit08:13
haha08:13
ravan joined08:14
osse all the patches should be in .git/rebase-todo or something08:15
make a copy of those at least08:15
Duckle joined08:15
osse and make a branch where you are now before rebase --abort08:15
dayday but rebase --abort won't work either08:17
osse might have to do some manual cleaning, then08:18
rm a bunch of stuff in .git08:18
dayday hmm08:18
deepy I have a bunch of refs that contain a commit I want to get rid of, it's been removed at the remote and there's no local branches that contain it08:19
but I still have a bunch of refs like this: 044e720591e5302e5cd5cf536316d984935cd10f commit refs/prefetch/remotes/origin/testbranch08:19
git fetch --prefetch --prune got rid of some of them but not all08:20
cvmn left08:23
osse if you're sure you want to remove all you can delete them yourself08:23
git update-ref -d08:23
buffet joined08:24
tkazi joined08:24
ferr_ joined08:24
rtjure joined08:24
jinsun joined08:24
jrm joined08:24
dslegends joined08:24
mw__ joined08:24
cdown joined08:24
weyhmueller_ joined08:24
blmt joined08:24
Trieste joined08:24
hendry joined08:24
omnigoat joined08:24
vancz joined08:24
ericnoan joined08:24
malteger_ joined08:24
terrorjack joined08:24
jancoow joined08:24
dmc joined08:24
af joined08:24
AlexKalopsia joined08:24
Rhonda joined08:24
SpacePlod joined08:24
i7c joined08:24
webstrand joined08:24
justache joined08:24
xkr47 joined08:24
Anarchic joined08:24
raffaele_ joined08:24
themill joined08:24
cation joined08:24
nr0q_radio joined08:24
warthog9 joined08:24
xaxas joined08:24
cbreak joined08:24
sahilister5 joined08:24
flying_sausages_ joined08:24
wils joined08:24
peirik_ joined08:24
Jonno_FT1 joined08:24
dysfigured joined08:24
Oblomov joined08:24
sunyibo_ joined08:24
Tabmow joined08:24
majors_ joined08:24
hanneso_ joined08:24
Artea joined08:24
mingdao joined08:24
PocketKiller joined08:24
mthall joined08:24
d1b joined08:24
dgw joined08:24
Ugrastil joined08:24
tureba joined08:24
mika joined08:24
frobnic joined08:24
Lcawte joined08:24
LouWestin joined08:24
almostdvs joined08:24
deepy 100% sure, will do, thanks :-)08:24
though I'm curious, is there any other way to get rid of prefetch?08:24
cation left08:25
Trieste left08:25
justache left08:25
mthall left08:25
terrorjack left08:25
osse no clue, this is actually the first I've heard of that functionality08:25
JibStyle left08:25
cation joined08:25
justache joined08:26
terrorjack joined08:26
osse git for-each-ref --format='delete %(refname)' -- refs/prefetch | git update-ref --stdin08:26
jimklimov2 left08:26
deepy I think previously people were using it to sneakily fetch changes from remotes without updating refs, so --prefetch was added so people could have it officially08:27
I mean they're probably doing it for the same reason now, but I don't fully grasp the why08:28
But my git repo is once again down to 100M :-)08:28
hnOsmium0001 left08:30
mthall joined08:30
Trieste joined08:30
peirik_ left08:30
ravan_ joined08:32
Nspace left08:32
ravan_ left08:32
ravan_ joined08:32
ravan_ left08:33
rahl left08:33
ravan_ joined08:34
ravan left08:34
osse Sourcetree does it pretty unsneakily08:34
ravan_ left08:34
osse people at work here forget fetch is a thing because everything is always up to date08:34
ravan_ joined08:35
rahl joined08:35
Nspace joined08:35
betelgeuse left08:36
Betal left08:36
peirik_ joined08:38
Samian left08:42
noidea joined08:46
osse I still force push sometimes08:48
jimklimov joined08:50
jimklimov1 joined08:52
christall joined08:53
jimklimov left08:55
ajfriesen left08:58
Timvde I force push all the time :P09:01
(to my own branch nobody else is working on)09:01
phroa joined09:02
lessless left09:03
Nspace left09:03
jimklimov1 cheers, is there some simple git checkout/reset command to rewrite all the files in the workspace, even if they seem up to date?09:04
e.g. after changing the EOL settings, to make sure everything is applied to the workspace09:04
tried checkout -f and reset --hard09:04
EvilDMP_ joined09:04
jimklimov1 switching to another branch and back did help, at least for files which differed, but that is not too automatable ;)09:05
ajfriesen joined09:06
EvilDMP left09:06
nx_ joined09:08
unluckyshrubbery joined09:08
jimklimov1 left09:10
jimklimov joined09:11
Timvde jimklimov: there's `git add --renormalize`09:12
So try `git add --renormalize . && git reset` or something09:12
I never used it myself09:12
inomoz joined09:15
jimklimov thanks, seems that might help, will experiment :)09:20
jimklimov left09:21
keypusher joined09:21
skapate left09:24
wender joined09:25
unmanbearpig joined09:25
christall left09:25
nyah joined09:25
EvilDMP joined09:28
computeiro left09:28
EvilDMP_ left09:30
mat001 joined09:30
chexum left09:31
chexum joined09:31
henk left09:34
jimklimov joined09:36
jimklimov left09:37
TJ- joined09:39
Gustavo6046 left09:43
Gustavo6046 joined09:44
Lope joined09:55
jimklimov joined09:56
EvilDMP left09:56
Lope is there a way to grep what files in my working copy have a line with a certain string removed?09:56
jimklimov1 joined09:58
Lope To clarify: I want to grep all the removed (and uncommitted) lines in my working copy where I have deleted the line containing "import PropTypes"09:59
jimklimov left10:00
jimklimov1 left10:02
nx_ left10:02
Lope This doesn't work `REM_PATTERN='aaaaaaaaaaaa' git diff --numstat` it shows all the files, and none of my files have ever contained/added/removed aaaaaaaaaa at any point in time.10:02
oh, my bad. I did the command wrong.10:03
txtsd left10:03
nx_ joined10:04
nxs__ joined10:06
ravan__ joined10:07
nx_ left10:09
ravan_ left10:10
AbleBacon left10:18
alzgh joined10:22
christall joined10:23
terrorjack left10:27
terrorjack joined10:28
ravan__ left10:33
TJ- left10:35
TJ- joined10:35
darkstarx left10:40
darkstardevx joined10:41
natrys joined10:54
christall left10:56
enoq joined10:57
cadmio joined11:08
cadmio Hello11:08
usually I commit with this script git add .; git commit -m "update all"; git push but it uploads also .o (object file) I don't want to update them11:08
emanuele6 joined11:09
osse git rm '*.o'; echo '*.o' >> .gitignore; git add .gitignore; git commit -m "Ignore object files from now on"11:10
cadmio I don't want to remove the .o file from the directory but just avoid to upload them11:10
osse git rm --cached '*.o'; echo '*.o' >> .gitignore; git add .gitignore; git commit -m "Ignore object files from now on"11:11
To avoid uploading them, you have to remove the from git. that can be done without removing them from disk11:13
cadmio so I do git rm --cached '*.o'; echo '*.o' >> .gitignore; git add .gitignore; git commit -m "Ignore object files from now on"11:15
just one time?11:15
osse yes11:15
feel free to run the commands one by one to see what happens11:15
cadmio but then when I do git add .; and I've .o files in the dir it should upload them again, isn't it?11:19
osse no11:21
christall joined11:23
stkrdknmibalz left11:26
eqw left11:32
malteger_ left11:34
john_johnk joined11:35
malteger joined11:37
Jck_true joined11:40
cmbengue left11:47
pony left11:50
Nomikos joined11:51
christall left11:51
spare joined11:51
rond_ joined11:52
wender left11:53
Nomikos left11:58
Strom left11:58
rewrit3 joined11:59
computeiro joined11:59
Strom joined12:00
ELFrederich left12:07
jwillikers joined12:13
furrymcgee joined12:14
Swahili joined12:15
eqw joined12:19
TJ- left12:22
TJ- joined12:24
spare left12:26
alzgh left12:27
alzgh joined12:27
cmbengue joined12:31
igemnace left12:31
jimklimov joined12:31
igemnace joined12:32
pulse joined12:32
xx joined12:32
drogas joined12:34
CSWookie joined12:35
speckz joined12:37
daoudr joined12:39
Timvde jimklimov: just curious: did you work it out?12:39
madewokherd` left12:39
cadmio left12:45
madewokherd joined12:48
christall joined12:49
tejr_ joined12:49
tejr left12:50
hqdruxn08__ joined12:52
christall left12:52
christall joined12:52
hqdruxn08_ left12:56
dimi1947 joined13:02
Xenguy left13:08
jmd git add seems to not allow adding a symbolic link. Is there a way I can force it?13:16
osse what do you mean13:17
jmd I want to run "git add foo" where foo is a symbolic link13:17
osse and then what happens13:18
merv joined13:18
jmd git silently ignores such a request (and returns 0)13:19
osse git add is usually silent13:19
jmd But if it can't do what is requested for any reason it shouldn't be.13:19
osse how do you know it didn't13:20
jmd git status shows the tree is clean13:20
CSWookie left13:21
osse then it was already added13:21
jmd But I haven't commited so it should show uncommited files13:21
osse !repro13:22
gitinfo [!transcript] Please paste (using https://gist.github.com/ or similar) a transcript ( https://git.io/viMGr ) of your terminal session so we can see exactly what you see13:22
pretty_dumm_guy joined13:28
aniruddha left13:34
igemnace left13:35
rond_ left13:36
ChmEarl joined13:36
igemnace joined13:36
jwillikers left13:42
cmbengue left13:43
ju joined13:45
stats4647 left13:45
rond_ joined13:46
stats4647 joined13:46
some_coder23 joined13:48
stats4647 left13:51
Aleksejs left13:52
Aleksejs joined13:52
cjohnson joined13:54
dkeohane2 joined13:56
travisghansen joined13:59
cmbengue joined14:01
Shentino left14:08
Shentino joined14:09
hqdruxn08 joined14:15
joakimk joined14:16
drogas left14:18
rsx joined14:19
hqdruxn08__ left14:19
meain1 joined14:24
ueberall left14:27
ueberall joined14:29
gast0n joined14:29
gh34 joined14:31
doforlove33 joined14:32
jess left14:32
aniruddha joined14:34
thiago joined14:39
kyshoc left14:39
kyshoc joined14:40
kyshoc left14:40
kyshoc joined14:40
MrMRDubya joined14:42
gast0n left14:43
gast0n joined14:44
saroy left14:48
EvilDMP joined14:48
sudoforge joined14:51
EvilDMP left14:52
skapata joined14:54
skapata left14:54
skapata joined14:54
Samian joined14:55
masber joined14:56
vysn left14:58
ghost43 left15:00
ghost43 joined15:02
loki_val joined15:03
crabbedhaloablut left15:03
alzgh left15:03
alzgh joined15:04
alzgh I'm building a project that uses a text file that is almost 5 MB of size. Is it normal/sensible to store that in git like all the other source files?15:05
rond_ left15:05
imMute alzgh: how often does said file change?15:05
alzgh imMute: never15:05
hnOsmium0001 joined15:05
imMute totally fine then, IMO.15:05
alzgh Ahh, I see. It's the diffs in the following commits that matter.15:06
Is it correct to look at the issue this way?15:06
zmt00 joined15:06
imMute it's a balance. for text files it's a little more lenient since text can usually compress well.15:07
stats4647 joined15:07
kenanmarasli left15:07
alzgh right15:07
imMute it's more about how much it changes - changes to a binary file add up quickly, while text can be compressed and sometimes even diffed in storage.15:07
alzgh Ohh, I see.15:07
imMute FWIW, I used to run a project where we stored about 10 6MB *binary* files in git. they changed about 6-12 times a year, and I was comfortable with that.15:08
alzgh Can't git create small size patches for binary files?15:09
imMute taht being said, we had "testing" branches where we went through iterations of these files - the intermediate steps definitely didn't need to stick around, so I would use interactive rebase to remove those and only keep the final, released versions15:09
binary files tend to not diff or compress well. so git can try, but it's usually not going to have much success15:09
alzgh I see. git also has this blob feature or something for large binary files.15:10
I have never looked into it though15:10
imMute that's not a feature, that's how git stores files in it's database15:12
binary or text.15:12
unless you're referring to git-lfs or git-annex...15:12
alzgh I'm quite new to this stuff. I have only heard about them :D15:13
joakimk left15:13
jla joined15:14
jla umh... i've got commited changes in remote branch and commited changes in my local same branch, how to make it consistent now ?15:15
may i 'git pull' locally ?15:16
alzgh rebase?15:16
Gustavo6046_ joined15:17
jla ah 'git pull --rebase' maybe ?15:17
jimklimov Timvde: not quite, it changed some files but not all on one try, and then nothing on re-runs with changed settings :\15:17
Gustavo6046 left15:18
Timvde Oh :(15:18
Gustavo6046_Gustavo604615:20
jazzy joined15:20
humanface joined15:21
jimklimov left15:22
node1 joined15:22
jmd Does anyone know of any server side precommit hook example to check the validity of author email addresses?15:25
vlado joined15:25
causasui left15:27
vladoski left15:28
nxs__ left15:32
stats4647 left15:35
stats4647 joined15:36
stats4647 left15:40
enoq left15:40
humanface left15:41
NeoCron joined15:41
doforlove33 left15:42
junktext joined15:46
iffraff joined15:51
txtsd joined15:52
dimi1947 left15:56
durham joined15:56
rtjure left16:00
Lope left16:00
erich_zann joined16:03
MrMRDubya left16:04
node1 left16:06
peirik_ left16:07
node1 joined16:09
vlado left16:11
SuperLag left16:12
SuperLag joined16:13
kenanmarasli joined16:14
txtsd left16:14
jmd left16:17
stats4647 joined16:19
keir joined16:24
jla left16:28
speckz left16:30
AbleBacon joined16:36
Null_A joined16:38
gordonfish joined16:38
node1 left16:42
keypusher left16:45
cmbengue left16:53
jkordani joined16:55
TheGuestMovie joined16:56
TheGuestMovie Should I worry about using my real email as the committer ID on public repos? I dont want to start receiving (more) spam.16:57
keir left16:57
TheGuestMovie do you guys create a burner email that forwards to your real one with your real name?16:57
rsx left16:57
ikke I have not16:58
imMute TheGuestMovie: I've put my real email out there. dunno if it's the reason for all my spam or not. IDC either because between my outright blocking of whole TLDs and gmails spam filter, it's not hard to deal with.16:59
keypusher joined16:59
TheGuestMovie do you use your real name too?16:59
CSWookie joined16:59
emf joined17:03
TheGuestMovie what TLDs have you blocked?17:03
cryptonector joined17:03
TheGuestMovie all of my spam seems to come from .fr (which I cant block, cause I know french people) or .com17:04
not like it's .cn or .ru17:04
Null_A left17:04
emf_ joined17:07
emf left17:07
christall left17:08
jmd joined17:08
christall joined17:09
spare joined17:09
masber left17:10
stats4647 left17:10
stats4647 joined17:11
john_johnk left17:13
christall left17:13
imMute yeah, real name. the list is currently: top science cu\.cc bid stream trade date loan club win us co xyz guru cyou best rest surf work buzz cloud asia casa store fun monster at cam ke bar17:13
TheGuestMovie wow, your spam situation must be way worse than mine. Dont thinki I ever got an email from any of those.17:14
imMute it's all the same spam farm stuff, just using different domains to try to get around the spam filter.17:15
each time a new one pops up it's a day of like 30-50 spam (that gmail always catches anyway) and then I block the new TLD.17:15
stats4647 left17:16
jstein joined17:16
relight left17:16
relight joined17:16
TheGuestMovie do you think you're getting those due to using that email as your git email on public repo, or from signing up to shady sites, or what?17:18
what I'm getting from this is that I shouldn't be using a real email, at least without obfuscation17:18
pony joined17:18
TheGuestMovie So I'm thinking: git config user.email "youknowme SEP gmail SEP com"17:18
mexen left17:21
TheGuestMovie In my case most of ther spam is from people I emailed, installing some malware, or accepting every random service that asks them to share their contact list to "make it easier". I can tell from the TO, back in the day I used to have my own domain and use a separate alias for tasks, like one for work, one for forums, one for shopping, etc. Most of17:21
the spam comes from my work account.17:21
nr0q_mobile left17:21
TheGuestMovie that is, the account I used to send my CV/resume when applying for jobs17:21
imMute I think it's just from that address being used by everything and one (more likely more though) company selling that information to others.17:21
nr0q_mobile joined17:22
imMute my girlfriend did an online car insurance quote with progressive the other day and within 15 minutes she was getting auto-related spam. so they clearly sold her info as soon as they could.17:22
TheGuestMovie that's sick17:23
Narrat joined17:27
Hash joined17:28
relight left17:29
relight joined17:30
ano left17:37
ano joined17:37
christall joined17:38
Null_A joined17:39
doforlove33 joined17:39
TheGuestMovie left17:40
skapata left17:43
dviola joined17:45
jmd How can I run "git log" just on the first 3 commits of the repository?17:47
ikke Git has not direct way to specify "first 3 commits"17:48
doforlove33 left17:55
doforlove33 joined17:55
jmd How do I prohibit users doing git push --force ?17:57
bremner that's specific to the hosting service17:58
e.g. github, gitlab, gitolite...17:58
igemnace left17:59
jmd You mean each of thost sites hack the git code to implement that themselves?17:59
nr0q_radio if your a repo-owner on gitlab it's fairly easy to set17:59
jmd and if I'm not?17:59
imMute jmd: ther's no "hacking" of the git code. just normal server side hooks.17:59
nr0q_radio those platforms, you can do gitlab on your own server, and have all those extra controls17:59
imMute jmd: (some don't even use the official git code either)18:00
nr0q_radio or a fork of it with lots of "extras"18:00
jmd imMute: Now we're getting somewhere. Which server side hook should I use for that?18:00
imMute jmd: post receive I think. but you should really look into wwhat your server side software has already.18:00
jmd: which hosting software are you using?18:01
jmd I don't understand what you mean by "hosting software"18:01
The software is bog standard git.18:01
imMute jmd: like github, gitlab, gitolite, azure dev ops, whatever the atlassian thing is called18:01
jmd None of the above.18:01
imMute jmd: so you just use SSH urls to a server with a SSH daemon?18:02
jmd yes18:02
imMute then you gotta use the hook. postreceive I think it is, you should google - someone already has done this.18:02
jmd okay18:02
imMute you should also look at using one of those packages - makes administration *much* easier as you start to get into these access control things.18:02
Hash left18:08
jmd So is there a simple way to test whether hash1 is an ancestor of hash2?18:11
imMute jmd: git merge-base --is-ancestor <maybe-ancestor-commit> <descendant-commit>18:12
christall left18:12
christall joined18:12
Null_A left18:15
mei joined18:16
christall left18:17
spare left18:23
cmbengue joined18:28
Swahili left18:30
lacrymology joined18:38
TheGuestMovie joined18:43
christall joined18:44
gordonfish- joined18:48
gordonfish left18:49
gordonfish-gordonfish18:49
devslash left18:49
vysn joined18:50
exarkun joined18:54
exarkun gitlab-runner is failing with this error - `fatal: shallow file has changed since we read it` - which I suspect comes from git. what git commands fail like this and what is gitlab doing wrong to provoke this case?18:55
also, if it is a persistent state, what do I do to fix it18:55
aidalgol_aidalgol18:57
some_coder23 left18:58
christall left19:00
ChemicalRascal left19:01
jmd left19:02
jess joined19:04
ju left19:08
nxs__ joined19:11
m0viefreak joined19:11
TheGuestMovie left19:13
Murr left19:13
Murr joined19:14
daoudr_ joined19:17
daoudr left19:20
howdoi joined19:20
ZacSharp joined19:22
Null_A joined19:22
goldfish joined19:23
sybariten OK so i know git is not really recommended for binary files, for various reasons (as is not really any VCS i suppose) , but if we look at people that build simple small web pages and version them.... do they typically version some images anyhow? Logos and buttons and some portrait or so19:27
gordonfish- joined19:27
gordonfish left19:27
ikke sybariten: small files that infrequently change are not going to be an issue19:28
christall joined19:28
imMute sybariten: I put images in my git repo for my website. but it's tiny and doesn't change very often.19:28
nr0q_radio same with ours too, we have quite a few images and it might be something in gitlab but it actually version's them fairly well19:28
ikke git itself has no issue with binary files, it's just going to bloat the repo19:28
jstein_ joined19:28
canton7 sybariten, the problem is that if a binary file changes, git often ends up storing both copies in the repo -- it isn't able to compress it efficiently. So any clone of the repo now has to download both versions of the image19:28
For large binary files that's going to get annoying, and likewise for loads of versions of small files19:29
sybariten yeah i can see that19:29
imgur and links, maybe...19:29
ZacSharp what about portable pixmaps (ppm) in ascii format? Those are text on one line per row so git should be able to use delta compression on them, right?19:31
ikke sounds like it19:32
erich_zann left19:32
imMute ZacSharp: IIRC the delta compression that git uses is not line based, so I don't think that'd help as much as you'd hope19:32
ikke depends on how much the data changes19:32
jstein_ left19:33
jstein left19:33
nxs__ left19:33
jstein joined19:33
ZacSharp a rgb ppm in ascii format uses between 6 and 12 bytes per pixel anyway, so even if it is compressed bettter, the worse image compression probably makes that up easily19:33
gordonfish- left19:34
hqdruxn08_ joined19:34
jstein left19:35
jstein joined19:36
hqdruxn08 left19:38
gordonfish joined19:38
furrymcgee left19:39
ninjin left19:40
ninjin joined19:40
yuljk joined19:41
emf joined19:41
emf_ left19:44
mei left19:44
tejr_tejr19:45
mei joined19:45
christall left19:45
squirrel joined19:48
enyc joined19:48
hqdruxn08 joined19:50
YuGiOhJCJ joined19:51
hqdruxn08_ left19:54
christall joined19:56
kenanmarasli left19:56
stats4647 joined20:00
hqdruxn08_ joined20:01
hqdruxn08 left20:05
bolsonarogay joined20:05
Null_A left20:06
stats4647 left20:08
mei left20:08
gordonfish left20:10
Lope joined20:12
ju joined20:19
gordonfish joined20:20
exarkun gitlab-runner is failing with this error - `fatal: shallow file has changed since we read it` - which I suspect comes from git. what git commands fail like this and what is gitlab doing wrong to provoke this case?20:21
jazzyjazz-o-lantern20:23
ZacSharp left20:24
masber joined20:25
Null_A joined20:29
Null_A left20:29
Null_A joined20:30
osse exarkun: https://github.com/git/git/blob/master/shallow.c#L267-L27520:34
canton7 left20:35
osse called from prune_shallow()... could that be it?20:35
canton7 joined20:36
bolsonarogay left20:36
bolsonarogay joined20:37
canton7 left20:37
canton7 joined20:38
skapata joined20:39
skapata left20:39
skapata joined20:39
Betal joined20:39
justachejustHaunt20:41
exarkun is that what runs when `git prune` is run on a shallow checkout?20:43
(So maybe in turn what happens when `git gc` is run on a shallow checkout?)20:44
canton7 left20:45
canton7 joined20:45
bolsonarogay left20:45
jimklimov joined20:47
canton7 left20:48
canton7 joined20:49
exarkun cool, gitlab-runner reaches inside .git and messes with stuff directly20:51
eg https://gitlab.com/gitlab-org/gitlab-runner/-/blob/main/shells/abstract.go#L37620:51
stats4647 joined20:52
FFY00 joined20:56
daoudr__ joined20:56
daoudr_ left20:59
ccw joined21:00
ccw how does one check to see if a particular branch is an ancestor of a commit?21:01
bambanxx joined21:03
aniruddha left21:04
exarkun it looks like gitlab just does concurrent git operations on the same checkout sometimes, and it breaks, shocking21:04
bolsonarogay joined21:05
ccw nm.. git merge-base --is-ancestor21:05
srinidhi left21:06
durham_ joined21:07
durham left21:08
bolsonarogay left21:09
doforlove33 left21:11
gh34 left21:13
bolsonarogay joined21:15
nxs__ joined21:24
Narrat left21:25
durham_ left21:26
hqdruxn08 joined21:26
durham joined21:26
nx_ joined21:27
nxs__ left21:29
hqdruxn08_ left21:30
causasui joined21:30
alphasierra joined21:31
theoceaniscool left21:31
TheGuestMovie joined21:33
noidea left21:35
ThorMojito left21:36
ThorMojito joined21:37
TheGuestMovie left21:40
palasso left21:41
spare joined21:47
NeoCron left21:52
spare left21:53
spare joined21:53
spare left21:57
spare joined21:57
rewrit3 left22:01
spare left22:02
nx_ left22:03
christall left22:10
relight left22:10
christall joined22:10
relight joined22:11
Gustavo6046 left22:13
Lope left22:14
christall left22:15
masber left22:17
squirrel left22:17
skapata left22:18
CSWookie left22:19
Trieste left22:22
Nspace joined22:24
mbalmer_ joined22:24
Trieste joined22:24
mbalmer left22:26
Byteflux joined22:26
emf left22:30
Nspace left22:31
lgc left22:34
nx_ joined22:34
stats4647 left22:38
ano left22:39
ano joined22:39
stats4647 joined22:40
m0viefreak left22:42
JibStyle joined22:42
christall joined22:43
stats4647 left22:44
thiago left22:47
hqdruxn08_ joined22:56
FFY00 left22:58
FFY00 joined22:58
christall left22:59
hqdruxn08 left23:00
Lope joined23:02
pizdets_ joined23:03
pizdets left23:04
Lope left23:06
Xenguy joined23:08
ju left23:17
Null_A left23:21
Null_A joined23:21
phundrak left23:22
christall joined23:26
drew` joined23:27
drew`drew23:27
nxs__ joined23:30
Null_A left23:32
igemnace joined23:33
nx_ left23:33
Null_A joined23:33
phundrak joined23:35
mat001 left23:35
nyah left23:37
vysn left23:41
christall left23:43
jimklimov left23:49
jimklimov joined23:50
hqdruxn08__ joined23:51
stats4647 joined23:54
hqdruxn08_ left23:55
stats4647 left23:58

Logs Search ←Prev date Next date→ Channels Documentation