From 92d220677a7a18ef7695bc3a5077e6095c1f4bd1 Mon Sep 17 00:00:00 2001 From: James Pace Date: Tue, 11 Apr 2023 20:27:27 -0400 Subject: [PATCH] Remove new lines at the end of git hashes. --- generic-tasks/j7s-git-clone-hash.yaml | 2 +- generic-tasks/j7s-git-clone.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generic-tasks/j7s-git-clone-hash.yaml b/generic-tasks/j7s-git-clone-hash.yaml index 03c087a..68d69df 100644 --- a/generic-tasks/j7s-git-clone-hash.yaml +++ b/generic-tasks/j7s-git-clone-hash.yaml @@ -24,4 +24,4 @@ spec: cd $(workspaces.output.path) git checkout $(params.hash) - git rev-parse HEAD > $(results.hash.path) \ No newline at end of file + echo -n $(git rev-parse HEAD) > $(results.hash.path) \ No newline at end of file diff --git a/generic-tasks/j7s-git-clone.yaml b/generic-tasks/j7s-git-clone.yaml index 3e5a77a..ac9349e 100644 --- a/generic-tasks/j7s-git-clone.yaml +++ b/generic-tasks/j7s-git-clone.yaml @@ -23,4 +23,4 @@ spec: git clone --single-branch --branch $(params.branch) $(params.url) $(workspaces.output.path) cd $(workspaces.output.path) - git rev-parse HEAD > $(results.hash.path) + echo -n $(git rev-parse HEAD) > $(results.hash.path)