-
Bug
-
Resolution: Done
-
Minor
-
None
-
Pipelines 1.18.1
-
False
-
-
False
-
-
Description of problem:
We get systematically the follow error message in git-clone task log output (even the git-clone task has succeeded):
2025-06-13T15:30:45.889967558Z {"level":"error","ts":1749828645.8898978,"caller":"git/git.go:53","msg":"Error running git [remote get-url origin]: exit status 2\nerror: No such remote 'origin'\n","stacktrace":"github.com/tektoncd-catalog/git-clone/git-init/git.run\n\t/go/src/github.com/tektoncd-catalog/git-clone/image/git-init/git/git.go:53\ngithub.com/tektoncd-catalog/git-clone/git-init/git.Fetch\n\t/go/src/github.com/tektoncd-catalog/git-clone/image/git-init/git/git.go:109\nmain.main\n\t/go/src/github.com/tektoncd-catalog/git-clone/image/git-init/main.go:52\nruntime.main\n\t/usr/lib/golang/src/runtime/proc.go:272"}
No workaround applicable
Prerequisites (if any, like setup, operators/versions):
OCP 4.18.17
Pipelines 1.18.1
Steps to Reproduce
- Create a pipeline with including only git-clone task
- Run the pipeline providing only the URL mandatory parameter
- git-clone task succeed but the following message has occured in the log:
2025-06-13T15:30:45.889967558Z {"level":"error","ts":1749828645.8898978,"caller":"git/git.go:53","msg":"Error running git [remote get-url origin]: exit status 2\nerror: No such remote 'origin'\n","stacktrace":"github.com/tektoncd-catalog/git-clone/git-init/git.run\n\t/go/src/github.com/tektoncd-catalog/git-clone/image/git-init/git/git.go:53\ngithub.com/tektoncd-catalog/git-clone/git-init/git.Fetch\n\t/go/src/github.com/tektoncd-catalog/git-clone/image/git-init/git/git.go:109\nmain.main\n\t/go/src/github.com/tektoncd-catalog/git-clone/image/git-init/main.go:52\nruntime.main\n\t/usr/lib/golang/src/runtime/proc.go:272"}Actual results:
See the git-clone task error message above.
Expected results:
We should not get this error message
Reproducibility (Always/Intermittent/Only Once):
Always
Acceptance criteria:
A git clone log output without this error message
Definition of Done:
Build Details:
Additional info (Such as Logs, Screenshots, etc):
*
- relates to
-
SRVKP-8000 Error running git [remote get-url origin]: exit status 2\nerror: No such remote 'origin' when using git-clone task
-
- Closed
-