From 4802283a2819d977f2f1d2e052ce30dbc00b3489 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 16 Aug 2025 17:02:53 -0500 Subject: [PATCH] stuff from late July --- Makefile | 7 +++++++ refs.go | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c7ee16c..54dd934 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,13 @@ build: goimports ldd going2git LD_LIBRARY_PATH=/opt/libgit2 ./going2git --refs --repo . +run: + LD_LIBRARY_PATH=/opt/libgit2 ./going2git --refs --repo . + +build-libgit2-prep: + cd /opt/ && git clone https://github.com/libgit2/libgit2.git + apt build-dep libgit2 + build-libgit2: cd /opt/libgit2/ && cmake . cd /opt/libgit2/ && cmake --build . diff --git a/refs.go b/refs.go index debd187..6475d4d 100644 --- a/refs.go +++ b/refs.go @@ -34,7 +34,7 @@ func walkRepo(repo *git.Repository) { log.Info("done", err) return } - log.Info("walkRepo() head", ref, err, "ref.Name =", ref.Name(), ref.SymbolicTarget(), ref.Shorthand()) + log.Info("walkRepo() ref =", ref.Name(), ref.SymbolicTarget(), ref.Shorthand()) // fmt.Printf("%+v\n", ref) // SymbolicTarget() }