git: 3a2b2ea88418 - main - net/gitup: Update to 0.97

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Sat, 04 Jun 2022 16:08:29 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3a2b2ea88418dfe73676170c460e8ada5c39d7ce

commit 3a2b2ea88418dfe73676170c460e8ada5c39d7ce
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-06-04 16:05:08 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-06-04 16:05:08 +0000

    net/gitup: Update to 0.97
    
     - remove files/patch-gitup.c included upstream
    
    ChangeLog: https://github.com/johnmehr/gitup/releases/tag/0.97
---
 net/gitup/Makefile            |  3 +--
 net/gitup/distinfo            |  6 +++---
 net/gitup/files/patch-gitup.c | 32 --------------------------------
 3 files changed, 4 insertions(+), 37 deletions(-)

diff --git a/net/gitup/Makefile b/net/gitup/Makefile
index 38480a43ecc5..6a6975370784 100644
--- a/net/gitup/Makefile
+++ b/net/gitup/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	gitup
-DISTVERSION=	0.96
-PORTREVISION=	1
+DISTVERSION=	0.97
 CATEGORIES=	net
 
 MAINTAINER=	eduardo@FreeBSD.org
diff --git a/net/gitup/distinfo b/net/gitup/distinfo
index d1926f15dc47..e71086dbb6a8 100644
--- a/net/gitup/distinfo
+++ b/net/gitup/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1631528863
-SHA256 (johnmehr-gitup-0.96_GH0.tar.gz) = 47e2df5cbe95afab6c419da3bfa1ac3068812c00e49033b160e5ba847923e9c1
-SIZE (johnmehr-gitup-0.96_GH0.tar.gz) = 29134
+TIMESTAMP = 1654358061
+SHA256 (johnmehr-gitup-0.97_GH0.tar.gz) = e474a88a4cd9fda43e6004b536ac0e519d508addb0d5b5b10b8289f04276cf43
+SIZE (johnmehr-gitup-0.97_GH0.tar.gz) = 31005
diff --git a/net/gitup/files/patch-gitup.c b/net/gitup/files/patch-gitup.c
deleted file mode 100644
index 06765095ef7d..000000000000
--- a/net/gitup/files/patch-gitup.c
+++ /dev/null
@@ -1,32 +0,0 @@
---- gitup.c.orig	2021-09-05 19:58:01.000000000 +0300
-+++ gitup.c	2022-01-18 16:53:41.999972000 +0300
-@@ -676,7 +676,8 @@ save_file(char *path, int mode, char *buffer, int buff
- 		memcpy(temp_buffer, buffer, buffer_size);
- 		temp_buffer[buffer_size] = '\0';
- 
--		if (symlink(temp_buffer, path) == -1)
-+		if (symlink(temp_buffer, path) == -1 &&
-+		    (unlink(path), symlink(temp_buffer, path)) == -1)
- 			err(EXIT_FAILURE,
- 				"save_file: symlink failure %s -> %s",
- 				path,
-@@ -2800,7 +2801,9 @@ save_repairs(connector *session)
- 					"save_repairs: cannot create %s",
- 					found_file->path);
- 		} else {
--			missing = !path_exists(found_file->path);
-+			struct stat st;
-+
-+			missing = stat(found_file->path, &st) != 0;
- 			update  = true;
- 
- 			/*
-@@ -2813,7 +2816,7 @@ save_repairs(connector *session)
- 
- 				check_hash = calculate_file_hash(
- 					found_file->path,
--					found_file->mode);
-+					st.st_mode);
- 
- 				buffer_hash = calculate_object_hash(
- 					found_object->buffer,