tlwiki: mode_init broken #6

Open
opened 2021-11-21 23:21:43 +00:00 by thurstylark · 0 comments
Owner

For some reason, I had it in my head that hugo was going to need more file structure than I was willing to keep track of, so I paired the repo way down and wrote mode_init to generate the site using hugo new site . --force

Turns out that not only was this horribly broken due to existing files, but it was never necessary in the first place. hugo will generate any additional files/dirs at build time, and I don't really have to fuck with it.

So, modify mode_init to run git submodule update --init --recursive instead

Also modify mode_updeps to run git pull --recurse-submodules

Also maybe rename mode_updeps to something more familiar like mode_pull? Since it's not exclusive to deps (read: submodules), and will pull the top-level repo as well.

For some reason, I had it in my head that hugo was going to need more file structure than I was willing to keep track of, so I paired the repo way down and wrote `mode_init` to generate the site using `hugo new site . --force` Turns out that not only was this horribly broken due to existing files, but it was never necessary in the first place. hugo will generate any additional files/dirs at build time, and I don't really have to fuck with it. So, modify `mode_init` to run `git submodule update --init --recursive` instead Also modify `mode_updeps` to run `git pull --recurse-submodules` Also maybe rename `mode_updeps` to something more familiar like `mode_pull`? Since it's not exclusive to deps (read: submodules), and will pull the top-level repo as well.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: thurstylark/tlwiki#6
No description provided.