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)