A code snippet for when the git repo has unstaged changes
system.configurationRevision = if (self ? rev) then
self.rev
else
throw "refuse to build: git tree is dirty";
September 15, 2023 ~ 1 min read
A code snippet for when the git repo has unstaged changes
system.configurationRevision = if (self ? rev) then
self.rev
else
throw "refuse to build: git tree is dirty";

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on distributed systems.