| 2024-10-18 |
| ← peirik_ left | 00:00 |
| ← twice left | 00:00 |
| → twice joined | 00:00 |
| ← gildasio left | 00:04 |
| → jaredce joined | 00:07 |
| → rainn92675560720 joined | 00:07 |
| ← jaredce left | 00:11 |
| → iomari891 joined | 00:25 |
| → peirik_ joined | 00:27 |
| → pveierland joined | 00:27 |
| ← peirik_ left | 00:32 |
| → gildasio joined | 00:33 |
| ← gsi left | 00:34 |
| → gsi joined | 00:36 |
| → peirik_ joined | 00:43 |
| ← peirik_ left | 00:48 |
| → ackyshake joined | 00:51 |
| ← masber left | 00:55 |
| ← ptrck5456 left | 01:02 |
| → ptrck5456 joined | 01:05 |
| → peirik_ joined | 01:15 |
| → ESphynx joined | 01:16 |
|
ESphynx
| Hi all! I'm trying to use 'git mergetool' with Meld. In my middle file, I see conflicts in red, and the other changes differ from both the left and right side, so I'm a bit confused how one is supposed to use this for resolving conflicts. I'm used to manually resolving conflicts. | 01:17 |
| → trafficjam joined | 01:18 |
|
trafficjam
| is git defaulting to `main` now for new repos? | 01:18 |
| ← peirik_ left | 01:20 |
| → Gary_Sinise joined | 01:20 |
|
ESphynx
| i.e., I don't understand why the middle file does not already have the correct lines for non-conflicting regions | 01:22 |
| ← kurahaupo left | 01:27 |
| ← davispuh left | 01:33 |
| ← puff left | 01:44 |
| → peirik_ joined | 01:45 |
| → kurahaupo joined | 01:45 |
| ← afdee1c_ left | 01:47 |
| ← peirik_ left | 01:50 |
| → James0r joined | 01:51 |
| → lucasta joined | 01:56 |
| ← pedahzur left | 02:05 |
| ← FreeBDSM left | 02:10 |
| ← trafficjam left | 02:10 |
| ← lucasta left | 02:15 |
| → peirik_ joined | 02:17 |
| → ferdna_ joined | 02:18 |
| ← pks left | 02:18 |
| → pks joined | 02:19 |
| ← ferdna left | 02:20 |
| ← peirik_ left | 02:22 |
| ← ChmEarl left | 02:23 |
| ← osc4rpt left | 02:26 |
| → peirik_ joined | 02:50 |
| ← James0r left | 02:50 |
| ← peirik_ left | 02:54 |
| ← XV8 left | 02:55 |
| ← hdh left | 02:56 |
| ← ferdna_ left | 02:59 |
| → James0r joined | 03:10 |
| ← shalok left | 03:18 |
| → peirik_ joined | 03:22 |
| → tetsuo-cpp joined | 03:25 |
| ← Gary_Sinise left | 03:26 |
| ← peirik_ left | 03:27 |
| ← skapata left | 03:46 |
| ← kurahaupo left | 04:02 |
| ← James0r left | 04:10 |
| → James0r joined | 04:11 |
| ← dlh404 left | 04:15 |
| ← monkfish left | 04:19 |
| ← smallville7123 left | 04:20 |
| → shalok joined | 04:21 |
| → smallville7123 joined | 04:21 |
| ← cpackham left | 04:23 |
| → osc4rpt joined | 04:24 |
| → peirik_ joined | 04:26 |
| ← peirik_ left | 04:31 |
| ← koo5_ left | 04:48 |
| → koo5_ joined | 04:49 |
| → YuGiOhJCJ joined | 04:51 |
| → ajfriesen167 joined | 05:05 |
| ← ajfriesen16 left | 05:07 |
| ajfriesen167 → ajfriesen16 | 05:07 |
| ← pveierland left | 05:09 |
| → kale joined | 05:11 |
| ← James0r left | 05:12 |
| → pveierland joined | 05:13 |
| → rosco joined | 05:13 |
| ← smallville7123 left | 05:16 |
| → smallville7123 joined | 05:17 |
| ← jinsun left | 05:19 |
| → jmd joined | 05:21 |
| ← apdg left | 05:23 |
| ← intelfx left | 05:28 |
| ← shalok left | 05:30 |
| ← hbautista_ left | 05:32 |
| → intelfx joined | 05:36 |
| → happyleaf joined | 05:40 |
| → peirik_ joined | 05:50 |
| → hwpplayer1 joined | 05:50 |
| ← peirik_ left | 05:55 |
| ← Echoz left | 05:59 |
| → Echoz joined | 06:00 |
| → happylea` joined | 06:09 |
| ← happyleaf left | 06:10 |
| → XV8 joined | 06:12 |
| ← XV8 left | 06:18 |
| → duxsco joined | 06:19 |
| ← intelfx left | 06:22 |
| → peirik_ joined | 06:22 |
| ← duxsco left | 06:22 |
| → duxsco joined | 06:24 |
| ← peirik_ left | 06:27 |
| ← hwpplayer1 left | 06:31 |
| → monkfish joined | 06:34 |
| → duxsco_ joined | 06:35 |
| ← duxsco left | 06:37 |
| → th3voic3 joined | 06:37 |
| ← happylea` left | 06:40 |
| → happylea` joined | 06:41 |
| ← monkfish left | 06:45 |
| → x_x joined | 06:46 |
| → XV8 joined | 06:46 |
| ← thiago left | 06:48 |
| ← rosco left | 06:48 |
| → Jck_true joined | 06:50 |
| → peirik_ joined | 06:54 |
| ← m1dnight left | 06:56 |
| → m1dnight joined | 06:57 |
| → rfuentess joined | 06:58 |
| ← peirik_ left | 07:00 |
| ← YuGiOhJCJ left | 07:00 |
| → YuGiOhJCJ joined | 07:00 |
| → gandhibobandhi__ joined | 07:02 |
| ← PortableDave left | 07:02 |
| → PortableDave joined | 07:03 |
| ← happylea` left | 07:04 |
| → happylea` joined | 07:05 |
| → user_oreloznog joined | 07:07 |
| → peirik_ joined | 07:08 |
| ← Echoz left | 07:15 |
| ← ggGuest10 left | 07:15 |
| → cronos joined | 07:19 |
| → ggGuest10 joined | 07:20 |
| ← PortableDave left | 07:24 |
| → Echoz joined | 07:25 |
| ← larryv left | 07:30 |
| → john_johnk joined | 07:31 |
| → theyneversleep joined | 07:35 |
| ← Lord_of_Life left | 07:36 |
| → Lord_of_Life joined | 07:37 |
| → rosco joined | 07:49 |
| ← iomari891 left | 07:50 |
| ← XV8 left | 07:51 |
| ← cronos left | 07:53 |
| → cronos joined | 08:00 |
|
ch
| i find myself in places with meh internet more often nowadays, what are good + convenient strategies for making git clone suck less? | 08:01 |
| → XV8 joined | 08:04 |
| ← cronos left | 08:04 |
|
selckin
| git init; git remote add foo; while true; do git fetch; done | 08:04 |
| → duxsco joined | 08:05 |
|
mgedmin
| shallow clones? | 08:05 |
|
ch
| selckin: hah, fun idea that | 08:06 |
|
ikke
| Don't store everything and the kitchen sink in git | 08:06 |
|
ch
| i think the remote is like 25MB | 08:06 |
|
| not exactly the kitchen and the sink in there | 08:07 |
|
selckin
| why are you constantly cloning it | 08:07 |
|
ch
| i'm not? | 08:07 |
|
selckin
| then whats the problem | 08:07 |
|
ch
| the internet has more than one repository | 08:07 |
| ← duxsco_ left | 08:08 |
|
ch
| anyway, how do i go from a --depth 1 clone to checking out a remote branch that exists? git fetch origin zeha/uf2-reenum in a --depth 1 clone doesn't seem to do enough so that git checkout works | 08:09 |
| ← XV8 left | 08:10 |
| → cronos joined | 08:12 |
|
ch
| git remote set-branches origin '*' && git fetch --depth 1 helps | 08:30 |
| → XV8 joined | 08:31 |
| ← ESphynx left | 08:36 |
| ← XV8 left | 08:36 |
| ← happylea` left | 08:43 |
| ← Elodin left | 08:44 |
| → happylea` joined | 08:44 |
| → mtj joined | 08:45 |
| ← reset left | 08:46 |
| ← gandhibobandhi__ left | 08:47 |
| → XV8 joined | 08:49 |
|
obiwahn
| How do i Rebase history that contains subtrees? | 08:53 |
| ← XV8 left | 08:55 |
| → gandhibobandhi__ joined | 08:57 |
| → jaredce joined | 09:05 |
| → XV8 joined | 09:08 |
| ← jaredce left | 09:10 |
| ← happylea` left | 09:15 |
| → happylea` joined | 09:16 |
| ← Flow left | 09:24 |
| → PortableDave joined | 09:27 |
| → crossby1004 joined | 09:30 |
| → Flow joined | 09:38 |
| ← rosco left | 09:46 |
| ← YuGiOhJCJ left | 09:48 |
| ← mkosmo26750 left | 09:49 |
| → mkosmo26750 joined | 09:49 |
| ← michele left | 09:53 |
| → Elodin joined | 09:57 |
| → michele joined | 09:59 |
| → sgm joined | 10:12 |
| ← leah2 left | 10:12 |
| → theoceaniscool joined | 10:17 |
| ← john_johnk left | 10:18 |
| ← fstd left | 10:22 |
| → fstd joined | 10:22 |
| → becm joined | 10:23 |
| → ___nick___ joined | 10:32 |
| ← ___nick___ left | 10:33 |
| → ___nick___ joined | 10:35 |
| → celmor joined | 10:40 |
| → leah2 joined | 10:45 |
| ← pveierland left | 10:47 |
| ← leah2 left | 10:50 |
| → pveierland joined | 10:57 |
| ← sgm left | 10:59 |
| → alexherbo2 joined | 11:03 |
| → sgm joined | 11:03 |
| → leah2 joined | 11:05 |
| → dlh404 joined | 11:07 |
| → john_johnk joined | 11:15 |
| ← robobub left | 11:16 |
| → makarov_the_grea joined | 11:18 |
| ← Flow left | 11:18 |
| ← wolf left | 11:21 |
| → wolf joined | 11:21 |
| → hwpplayer1 joined | 11:27 |
| → rosco joined | 11:33 |
| → Flow joined | 11:35 |
| ← fandre1986 left | 11:46 |
| ← PortableDave left | 11:52 |
| ← JanC left | 11:59 |
| → JanC joined | 11:59 |
| ← peirik_ left | 12:11 |
| → XV9 joined | 12:17 |
| ← alexherbo2 left | 12:18 |
| → alexherbo2 joined | 12:18 |
| → duxsco_ joined | 12:20 |
| ← XV8 left | 12:20 |
| ← duxsco left | 12:23 |
| ← hwpplayer1 left | 12:23 |
| → jaredce joined | 12:24 |
| ← theoceaniscool left | 12:25 |
| → hwpplayer1 joined | 12:28 |
| ← celmor left | 12:28 |
| ← jaredce left | 12:29 |
| ← jmd left | 12:32 |
| → jmd` joined | 12:32 |
| ← alexherbo2 left | 12:33 |
| → alexherbo2 joined | 12:34 |
| ← alexherbo2 left | 12:38 |
| ← duxsco_ left | 12:41 |
| ← frobnic left | 12:42 |
| → duxsco joined | 12:42 |
| ← hwpplayer1 left | 12:44 |
| → alexherbo2 joined | 12:48 |
| ← john_johnk left | 12:52 |
| ← Flow left | 12:53 |
| → gareppa joined | 12:55 |
| → peirik_ joined | 12:55 |
|
lockywolf
| How do I rebase the first commit? | 13:05 |
| → Flow joined | 13:05 |
|
selckin
| --root | 13:05 |
| ← peirik_ left | 13:06 |
| → gandhibobandhi_ joined | 13:07 |
| ← kale left | 13:07 |
| ← theyneversleep left | 13:07 |
|
lockywolf
| selckin: thank you! | 13:09 |
| ← gandhibobandhi__ left | 13:10 |
| → afdee1c_ joined | 13:11 |
| → frobnic joined | 13:12 |
| → jensen1 joined | 13:16 |
| ← frobnic left | 13:19 |
| → frobnic joined | 13:19 |
| ← alexherbo2 left | 13:21 |
| → peirik_ joined | 13:24 |
|
lockywolf
| hm... I might be asking for something strange, but is it possible to add a project itself as a submodule? | 13:26 |
|
| a different branch, of course | 13:26 |
|
| I am trying to do `git submodule add -b attic -- ./.git ./resources/` | 13:27 |
|
| but the system says "fatal: transport 'file' not allowed" | 13:27 |
| → alex__c joined | 13:28 |
| ← becm left | 13:29 |
| → becm joined | 13:29 |
| ← nopjmp left | 13:29 |
|
selckin
| maybe you want a worktree | 13:30 |
| ← peirik_ left | 13:30 |
| → nopjmp joined | 13:30 |
| → skapata joined | 13:30 |
| ← Flow left | 13:30 |
| → spare joined | 13:30 |
| ← memset left | 13:31 |
| → Flow joined | 13:32 |
| → memset joined | 13:32 |
|
lockywolf
| I used worktree once | 13:34 |
|
| but for an opposite thing | 13:34 |
|
| I had two branches checked-out side-by-side | 13:34 |
| → pick joined | 13:35 |
|
lockywolf
| the thing is that on most machines I don't need the contents of ./resources/ | 13:35 |
|
selckin
| submodules are really annoying if they arent global | 13:36 |
| ← pickanick left | 13:37 |
| ← pick left | 13:38 |
| → peirik_ joined | 13:38 |
| → pick joined | 13:38 |
| ← memset left | 13:40 |
| → memset joined | 13:41 |
| → otisolsen70 joined | 13:41 |
| ← otisolsen70 left | 13:42 |
| ← peirik_ left | 13:43 |
| → otisolsen70 joined | 13:43 |
| → phryk joined | 13:44 |
| → Left_Turn joined | 13:47 |
| → shalok joined | 13:48 |
| ← gildasio left | 13:49 |
| → gildasio joined | 13:50 |
| ← pveierland left | 13:51 |
| → hbautista_ joined | 13:53 |
| → duxsco_ joined | 13:54 |
| → kale joined | 13:56 |
| → krishna joined | 13:56 |
| ← duxsco left | 13:57 |
| → Turn_Left joined | 13:58 |
| krishna → Herz | 13:58 |
| ← happylea` left | 13:59 |
| ← Left_Turn left | 14:01 |
| → peirik_ joined | 14:03 |
|
lockywolf
| git -c protocol.file.allow=always submodule add --force -b attic -- ./ ./resources/ | 14:04 |
|
| works as expected | 14:04 |
| ← Betal left | 14:05 |
| → pveierland joined | 14:06 |
| ← peirik_ left | 14:08 |
| → davispuh joined | 14:08 |
| → hwpplayer1 joined | 14:12 |
| ← becm left | 14:13 |
| → becm1 joined | 14:13 |
| becm1 → becm | 14:15 |
| ← duxsco_ left | 14:18 |
| → ChmEarl joined | 14:20 |
| ← skered left | 14:23 |
| → skered joined | 14:25 |
| ← Herz left | 14:26 |
| → Left_Turn joined | 14:34 |
| → peirik_ joined | 14:35 |
| ← Turn_Left left | 14:36 |
| ← peirik_ left | 14:40 |
| ← dsimic left | 14:41 |
| → alexherbo2 joined | 14:42 |
| → dsimic joined | 14:43 |
| ← becm left | 14:43 |
| → becm joined | 14:44 |
| → rsx joined | 14:49 |
| → peirik_ joined | 15:03 |
| ← LinearArray left | 15:07 |
| → LinearArray joined | 15:07 |
| ← Elodin left | 15:07 |
| ← peirik_ left | 15:08 |
| → thiago joined | 15:11 |
| ← rsx left | 15:13 |
| → Betal joined | 15:13 |
| → Turn_Left joined | 15:20 |
| ← rfuentess left | 15:22 |
| ← memset left | 15:23 |
| → memset joined | 15:24 |
| ← Left_Turn left | 15:24 |
| ← alexherbo2 left | 15:25 |
| → Left_Turn joined | 15:26 |
| ← pveierland left | 15:28 |
| → DPA joined | 15:28 |
| ← Turn_Left left | 15:30 |
| → lucasta joined | 15:31 |
| ← memset left | 15:32 |
| → memset joined | 15:33 |
| ← rosco left | 15:34 |
| → peirik_ joined | 15:34 |
| → john_johnk joined | 15:37 |
| → Guest2 joined | 15:39 |
| ← peirik_ left | 15:39 |
| ← Guest2 left | 15:41 |
| → Guest2 joined | 15:43 |
| → aiyunyuner45 joined | 15:45 |
| ← aiyunyuner4 left | 15:47 |
| aiyunyuner45 → aiyunyuner4 | 15:47 |
| ← XV9 left | 15:47 |
| ← john_johnk left | 15:48 |
| → aiyunyuner48 joined | 15:51 |
| ← aiyunyuner4 left | 15:53 |
| aiyunyuner48 → aiyunyuner4 | 15:53 |
| → XV8 joined | 16:00 |
| ← x_x left | 16:03 |
| → bambams joined | 16:03 |
| → alexherbo2 joined | 16:04 |
| ← XV8 left | 16:06 |
| ← becm left | 16:09 |
| → becm joined | 16:09 |
| → x_x joined | 16:12 |
| ← Guest2 left | 16:13 |
| ← alex__c left | 16:13 |
| → Minvera joined | 16:15 |
| ← becm left | 16:17 |
| ← bambams left | 16:21 |
| ← saavedro left | 16:22 |
|
wallbroken
| does .gitignore affects when cloning the repository? | 16:25 |
|
selckin
| no | 16:26 |
|
wallbroken
| this means that when cloning the repository, all the files included in .gitignore have been downloaded? | 16:28 |
|
gnoo
| all the files that have been added and comitted | 16:29 |
|
osse
| wallbroken: The files included in the repo itself are downloaded. gitignore does not affect cloning in any way | 16:29 |
|
wallbroken
| ok, i'm going to explain what is my goal | 16:30 |
|
| my project have some sample file | 16:30 |
|
| IE: settings.py.sample | 16:30 |
|
| the user, after cloning the, needs to edit the file and rename setting.py | 16:30 |
|
| i don't want neither settings.py nor settings.sample.py have to be considered in the commit/push | 16:31 |
|
| because they contains personal local configuration | 16:31 |
|
| is it clear what my need is? | 16:31 |
|
gnoo
| don't have personal local configuration on settings.sample.py | 16:32 |
|
osse
| wallbroken: yes. Put settings.py in .gitignore. The sample is already a part of the repo and cannot be ignored | 16:32 |
|
wallbroken
| ok but when you rename sample, the file is seen as a new file | 16:33 |
|
gnoo
| i'd also suggest renaming it to settings.py.sample to discourage making changes on that file | 16:33 |
| → XV8 joined | 16:33 |
|
wallbroken
| and git considers it in the commit push | 16:33 |
| → cdown joined | 16:33 |
|
gnoo
| not if you have settings.py in the .gitignore. copy settings.py.sample instead of renaming it | 16:33 |
|
wallbroken
| the only way is to copy the file and not just rename it | 16:33 |
|
osse
| wallbroken: in that case something is wrong with your .gitignore | 16:33 |
|
| it should not be seen as a new file | 16:34 |
|
| (the old one will be seen as deleted, yes. no way around that) | 16:34 |
|
wallbroken
| yed | 16:34 |
|
| git is asking me to delete it from the repository | 16:34 |
|
gsish
| git is most probably not doing that | 16:35 |
|
osse
| copy the sample instead of deleting it | 16:36 |
|
gnoo
| if you've already renamed it, do git restore settings.sample.py | 16:37 |
| ← otisolsen70 left | 16:38 |
| ← XV8 left | 16:40 |
|
wallbroken
| ok | 16:43 |
|
| thank you | 16:43 |
| ← lucasta left | 16:49 |
| → memset_ joined | 16:54 |
| ← memset left | 16:58 |
| ← specing left | 17:00 |
| ← hbautista_ left | 17:01 |
| → specing joined | 17:02 |
| → hdh joined | 17:03 |
| → James0r joined | 17:03 |
| → XV8 joined | 17:09 |
| → alex__c joined | 17:11 |
| → intelfx joined | 17:14 |
| ← alex__c left | 17:20 |
| → jinsun joined | 17:20 |
| → BolzmannPain joined | 17:22 |
| ← BolzmannPain left | 17:23 |
| → BolzmannPain2 joined | 17:23 |
| ← afdee1c_ left | 17:33 |
| → Elliria joined | 17:34 |
| ← smallville7123 left | 17:40 |
| → smallville7123 joined | 17:40 |
| ← pick left | 17:41 |
| → pickanick joined | 17:41 |
| → XV8|MBP16in joined | 17:44 |
| → YuGiOhJCJ joined | 17:44 |
| ← memset_ left | 17:47 |
| → memset joined | 17:48 |
| ← navi left | 17:53 |
| ← ztrawhcse left | 17:53 |
| → navi joined | 17:53 |
| → ztrawhcse joined | 17:53 |
| ← n-st left | 17:54 |
| → n-st joined | 17:54 |
| ← supernovah left | 17:55 |
| → supernovah joined | 17:56 |
| → gandhibobandhi__ joined | 17:59 |
| ← gandhibobandhi_ left | 18:01 |
| → BolzmannPain13 joined | 18:01 |
| ← alexherbo2 left | 18:02 |
| ← skapata left | 18:03 |
| → skapata joined | 18:04 |
| ← BolzmannPain2 left | 18:04 |
| ← jinsun left | 18:07 |
| → npcomp joined | 18:08 |
| ← sgm left | 18:09 |
| ← P1ro left | 18:09 |
| ← gandhibobandhi__ left | 18:11 |
| → FreeBDSM joined | 18:12 |
| ← CrunchyFlakes left | 18:14 |
| → P1ro joined | 18:16 |
| ← rainn92675560720 left | 18:17 |
| → CrunchyFlakes joined | 18:17 |
| ← XV8 left | 18:19 |
| ← spare left | 18:20 |
| ← XV8|MBP16in left | 18:21 |
| ← cdown left | 18:22 |
| → rainn92675560720 joined | 18:32 |
| ← memset left | 18:33 |
| → memset joined | 18:33 |
| ← defec7ed left | 18:35 |
| → defec7ed joined | 18:37 |
| → XV8 joined | 18:39 |
| XV8 → XV8|MBP14in | 18:45 |
| ← kale left | 18:58 |
| ← BolzmannPain13 left | 19:02 |
| ← James0r left | 19:07 |
| ← makarov_the_grea left | 19:08 |
| → larryv joined | 19:10 |
| → aiyunyuner44 joined | 19:11 |
| → BolzmannPain2 joined | 19:12 |
| → makarov joined | 19:12 |
| ← aiyunyuner4 left | 19:12 |
| aiyunyuner44 → aiyunyuner4 | 19:12 |
| ← makarov left | 19:17 |
| → peirik_ joined | 19:20 |
| ← peirik_ left | 19:25 |
| ← lembron left | 19:26 |
| ← skered left | 19:30 |
| → skered joined | 19:31 |
| ← crabbedhaloablut left | 19:34 |
| → crabbedhaloablut joined | 19:36 |
| ← Elliria left | 19:42 |
| → skyl4rk joined | 19:42 |
| ← Noisytoot left | 19:43 |
| ← jmd` left | 19:45 |
| → Noisytoot joined | 19:52 |
| → peirik_ joined | 19:53 |
| ← peirik_ left | 19:57 |
| ← ___nick___ left | 20:04 |
| ← Vonter left | 20:05 |
| → Vonter joined | 20:07 |
| → pedahzur joined | 20:10 |
| ← BolzmannPain2 left | 20:15 |
| → m0viefreak joined | 20:18 |
| → peirik_ joined | 20:25 |
| ← DPA left | 20:26 |
| ← shalok left | 20:26 |
| ← brw9 left | 20:29 |
| → epicout joined | 20:30 |
| → brw9 joined | 20:30 |
| ← peirik_ left | 20:30 |
| → puff joined | 20:34 |
| → ferdna joined | 20:35 |
| → DPA joined | 20:42 |
| ← thiago left | 20:48 |
| → thiago joined | 20:48 |
| ← t3ch left | 20:49 |
| ← crossby1004 left | 20:56 |
| → peirik_ joined | 20:57 |
| ← peirik_ left | 21:02 |
| → peirik_ joined | 21:06 |
| ← phryk left | 21:10 |
| ← peirik_ left | 21:11 |
| → phryk joined | 21:11 |
|
selckin
| is there a way to see or remove object/pack files left behind from failed repacks/gc | 21:11 |
|
| without running gc, since not enough disk space | 21:11 |
| ← gareppa left | 21:13 |
| ← thiago left | 21:16 |
|
selckin
| nevermind i'll just fix that | 21:18 |
| → peirik_ joined | 21:20 |
| ← hwpplayer1 left | 21:22 |
| → fury_ joined | 21:24 |
| → aunk05 joined | 21:25 |
| ← aunk05 left | 21:25 |
| ← user_oreloznog left | 21:27 |
| → Guest55 joined | 21:27 |
|
fury_
| I'm working with Jenkins on something with git. inside a bash script ran by Jenkins, I need to get the currently checked out branch name from git. Normally, "git branch --show-current" works. In this case, it doesn't, for some reason. Jenkins checks the branch out as 'git checkout -f <commit hash>' after doing a few things to figure out the most recent commit hash. is there any way I can get git | 21:27 |
|
| to tell me which branch that is (ie. something more reliable than git branch --show-current)? | 21:27 |
| → seanh1 joined | 21:28 |
|
selckin
| git rev-parse --symbolic-full-name --abbrev-ref HEAD | 21:29 |
|
| maybe | 21:29 |
| seanh1 → seanh | 21:29 |
|
Guest55
| Hi, everybody, I'm trying to use git sparse-checkout and I'm having trouble configuring it. I want to sparse-checkout the following: all files in the main repo folder; only one of its subfolders, along with all of that folder's contents (files and folders). So far I've been unable to achieve this. Is there a way to achieve this? If so, could | 21:30 |
|
| someone help? Sorry if this is a horribly basic question. | 21:30 |
|
fury_
| selckin: that just gets me "HEAD" | 21:30 |
| ← Betal left | 21:30 |
|
selckin
| then you need like what git branch --contains HEAD returns, someone else will know | 21:31 |
|
b0nn
| git status -unormal, then fish out the "On branch" string | 21:34 |
| ← Guest55 left | 21:34 |
| → Betal joined | 21:34 |
|
fury_
| I see, this is a "detached" head | 21:34 |
|
selckin
| when i had that problem i changed jenkins to actually checkout the branch and not the commit | 21:35 |
|
fury_
| I'm sure Jenkins is outside the scope of this channel, but this is a multibranch pipeline, I don't see a way to do that | 21:36 |
|
selckin
| was like 10 years ago, don't remember how, but it gave a lot of problems with tools that made tags & stuff for releases too | 21:37 |
|
fury_
| well since I now know it's just a detached head, I could 'git checkout <branch>' | 21:38 |
| → peirik__ joined | 21:38 |
| ← peirik_ left | 21:40 |
| ← Minvera left | 21:43 |
| ← peirik__ left | 21:43 |
|
fury_
| well, yeah, I'm just going to do that. I just need to go commit about a dozen Jenkinsfile instances across a few branches, which is annoying, but whatever. it works | 21:44 |
|
| if you're curions, `sh "git checkout $env.BRANCH_NAME"` in a Jenkinsfile will cure most of your headaches | 21:44 |
| ← cmc left | 21:50 |
| → cmc joined | 21:51 |
| → peirik_ joined | 21:55 |
| ← cmc left | 21:57 |
| → cmc joined | 21:57 |
| ← cmc left | 21:59 |
| ← peirik_ left | 21:59 |
| → cmc joined | 21:59 |
|
puff
| Evening, what is the preferred way to install git on a mac? | 22:01 |
|
selckin
| https://git-scm.com/downloads/mac | 22:02 |
|
puff
| Thanks. | 22:03 |
|
| So not brew or somesuch? | 22:04 |
|
R2robot
| just use brew if you have it | 22:04 |
|
puff
| Ah, I see that page explains how to use brew. | 22:04 |
|
R2robot
| :D | 22:05 |
|
puff
| Which one is generally considered best/easiest/most reliable, Brew, macports, etc? | 22:05 |
|
R2robot
| brew | 22:05 |
|
puff
| I find Mac (or really Apple) often does things in counterintuitive ways. | 22:06 |
|
R2robot
| brew is not part of apple.. but that's another topic | 22:06 |
|
| the official git page shows brew, not any others. So there's that. | 22:07 |
|
puff
| Ah, okay, thanks. | 22:07 |
|
selckin
| the 'mac' way is probably a gui like github desktop | 22:08 |
|
| brew is very popular | 22:08 |
| → thiago joined | 22:14 |
|
puff
| Thanks. | 22:14 |
|
| Hm, Brew's installer says it's downloading command line tools for xcode, but it's been a while. It's not giving me any progress indicator, is that normal and it's still downloading, or is it hung? | 22:22 |
| → peirik_ joined | 22:23 |
|
puff
| Ah, it printed that ine again, and then it said it's installing command line tools for xcode. | 22:26 |
| ← peirik_ left | 22:28 |
| ← skered left | 22:29 |
| ← romibi left | 22:29 |
| → skered joined | 22:29 |
| ← th3voic3 left | 22:37 |
| → th3voic3 joined | 22:38 |
| ← epicout left | 22:39 |
| → romibi joined | 22:42 |
| ← Left_Turn left | 22:55 |
| → shalok joined | 23:02 |
|
puff
| man, "brew install git" got to the line: Installing git dependenc: cmake\n==> ./bootstrap --prefix=/usr/local/cellar/cmake/3.30.5 --no-system-libs --parallel=4 | 23:03 |
| ← x_x left | 23:03 |
|
puff
| and it seems to be just stuck there. | 23:03 |
|
selckin
| #brew | 23:04 |
|
puff
| Okay, thanks. | 23:04 |
|
| Er what? There's no #brew channel. | 23:05 |
|
R2robot
| any of the mac channels | 23:05 |
|
puff
| Ok | 23:06 |
|
R2robot
| ##apple, #macosx | 23:06 |
| → ferdna_ joined | 23:15 |
| → arahael_ joined | 23:16 |
| ← ferdna left | 23:18 |
| ← arahael left | 23:19 |
| arahael_ → arahael | 23:19 |
| → vrach joined | 23:19 |
| → peirik_ joined | 23:24 |
|
lrvick
| I would remind you that brew does not sign packages, so you are trusting anyone capable of phishing one of 500+ people with brew access, with access to execute any code they want on your computer. | 23:24 |
|
R2robot
| ~10 years, no issues so far for me | 23:24 |
|
lrvick
| Most don't use hardware 2FA or even commit signing. | 23:24 |
|
| That is survivors bias talking. You are talking to someone that does supply chain attacks like this on my clients for a living. It is easy, and attacks in the wild went up 152% this year. Blackhats are starting to figure out just how easy it is. | 23:25 |
| → crossby1004 joined | 23:26 |
|
R2robot
| And that is your bias speaking... | 23:26 |
|
lrvick
| Often it is as easy as finding a brew maintainer whose personal email domain expired this week and buying the domain, so you can reset their github password and push a commit as them. | 23:26 |
|
R2robot
| and off topic | 23:26 |
|
lrvick
| Just advising against people installing git via known dangerous non-reproducible and unsigned methods. | 23:26 |
|
| that advice will burn everyone eventually | 23:27 |
|
R2robot
| ... | 23:27 |
| ← memset left | 23:28 |
| ← peirik_ left | 23:29 |
| → memset joined | 23:29 |
| → thomasross joined | 23:30 |
| ← thomasross left | 23:32 |
|
SuperLag
| puff: #machomebrew | 23:34 |
|
| Is my understanding of how to set up a pre-commit hook correct? Set up your hook actions in bash format in $REPO/.git/hooks/pre-commit and then mark it +x? | 23:35 |
| → thomasross joined | 23:35 |
|
larryv
| a hook can be any sort of executable. don't have to be a shell script | 23:36 |
|
| *doesn't | 23:36 |
| ← simon8162 left | 23:39 |
| ← Vonter left | 23:40 |
| ← crossby1004 left | 23:40 |
| → simon816 joined | 23:40 |
|
SuperLag
| larryv: does the file have to be named "pre-commit"? | 23:42 |
| → masber joined | 23:42 |
|
larryv
| yes | 23:42 |
|
| (even if you do symlink shenanigans like i do, the link still has to be called "pre-commit") | 23:44 |
| ← P1ro left | 23:45 |
| ← XV8|MBP14in left | 23:45 |
| → pveierland joined | 23:59 |
| ← masber left | 23:59 |