~kornellapacz/gmnigit

b71d6002955a506911b8e077aeddd734e2752404 — Korneliusz Łapacz 2 years ago 8070917
no tags hint
1 files changed, 5 insertions(+), 0 deletions(-)

M commits.go
M commits.go => commits.go +5 -0
@@ 113,6 113,11 @@ func createRefsFile(r *git.Repository) {

	fmt.Fprintf(refsFile, "# %s tags\n\n", projectName)

	if len(tags) == 0 {
		fmt.Fprintln(refsFile, "No tags yet.")
		return
	}

	for i := len(tags) - 1; i >= 0; i-- {
		fmt.Fprintln(refsFile, tags[i])
	}