Date: Monday, May 13, 2019 @ 15:50:51 Author: svenstaro Revision: 467150
Remove old patch Deleted: gitlab-shell/trunk/252.patch -----------+ 252.patch | 31 ------------------------------- 1 file changed, 31 deletions(-) Deleted: 252.patch =================================================================== --- 252.patch 2019-05-13 15:46:56 UTC (rev 467149) +++ 252.patch 2019-05-13 15:50:51 UTC (rev 467150) @@ -1,31 +0,0 @@ -From 2ae15257494d925d67c40ac2af00da127079ae42 Mon Sep 17 00:00:00 2001 -From: Vlad Petrov <[email protected]> -Date: Tue, 16 Oct 2018 22:24:41 +0300 -Subject: [PATCH] Update current path extraction - -It is recommended to use func Executable since 1.8 -https://tip.golang.org/pkg/os/#Executable ---- - go/cmd/gitlab-shell/main.go | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/go/cmd/gitlab-shell/main.go b/go/cmd/gitlab-shell/main.go -index ae54151..b42aba7 100644 ---- a/go/cmd/gitlab-shell/main.go -+++ b/go/cmd/gitlab-shell/main.go -@@ -15,7 +15,11 @@ var ( - ) - - func init() { -- binDir = filepath.Dir(os.Args[0]) -+ ex, err := os.Executable() -+ if err != nil { -+ panic(err) -+ } -+ binDir = filepath.Dir(ex) - rootDir = filepath.Dir(binDir) - } - --- -2.18.1 -
