capnfabs / grouse

A diff tool for Hugo static sites.
https://capnfabs.net/posts/grouse-diff-tool-hugo-static-site-generators/
MIT License
13 stars 2 forks source link

Grouse does not work with a site that uses .GitInfo #10

Closed jasikpark closed 4 years ago

jasikpark commented 4 years ago

Here's my attempt 😅

% grouse HEAD dev --debug
Computing diff between revisions HEAD (0a7c1e1) and dev (20c9cf1)
Building revision HEAD (0a7c1e1)…
2020/03/13 00:52:58 Checking out HEAD (0a7c1e1) to /var/folders/bj/3d96gjw11tqd9y4ws37mg0sc0000gn/T/grouse-diff963426300/source/0a7c1e1cafe7e81a7e07436b33857e109a52167b…
2020/03/13 00:52:59 …done checking out.
2020/03/13 00:52:59 Running command
> hugo --destination=/var/folders/bj/3d96gjw11tqd9y4ws37mg0sc0000gn/T/grouse-diff963426300/output
(from directory /var/folders/bj/3d96gjw11tqd9y4ws37mg0sc0000gn/T/grouse-diff963426300/source/0a7c1e1cafe7e81a7e07436b33857e109a52167b)
Building sites … ERROR 2020/03/13 00:52:59 Failed to read Git log: fatal: not a git repository (or any of the parent directories): .git
Total in 178 ms
Error: Error building site: logged 1 error(s)
Error: Building at commit HEAD (0a7c1e1) failed: exit status 255

Sounds like #9 might be working on this?

jasikpark commented 4 years ago

Also #2 apparently... cool that you're working on #9!

capnfabs commented 4 years ago

Hey! Sorry for the extremely delayed response on this; I've had my notifications turned off for the last two years, apparently 😅

I just added a test for this; I'll be shipping a new build that works with this feature next week, I think.

capnfabs commented 4 years ago

This is now fixed and tested on dev branch; release coming this week.