Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-7872

No such remote 'origin' error message when running git-clone task

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • 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

      1. Create a pipeline with including only git-clone task
      1. Run the pipeline providing only the URL mandatory parameter
      1. 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):

       

       *

              rh-ee-smanthin Sai Raju Manthina
              laurent.tourreau Laurent TOURREAU
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: