From f373cc7235deaec49d2aa86ecdb55c9dd6dc5282 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 5 Jan 2016 21:43:14 +0100 Subject: [PATCH] clone url is one line, strip newline --- stagit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stagit.c b/stagit.c index 9527b01..3693efe 100644 --- a/stagit.c +++ b/stagit.c @@ -1008,6 +1008,7 @@ main(int argc, char *argv[]) if (fpread) { if (!fgets(cloneurl, sizeof(cloneurl), fpread)) cloneurl[0] = '\0'; + cloneurl[strcspn(cloneurl, "\n")] = '\0'; fclose(fpread); } -- libgit2 1.1.1