GithubHelp home page GithubHelp logo

git pull error about action HOT 4 CLOSED

changesets avatar changesets commented on September 1, 2024
git pull error

from action.

Comments (4)

Andarist avatar Andarist commented on September 1, 2024

Well, we could move those lines further down:

action/src/run.ts

Lines 81 to 82 in bfeb9e0

await gitUtils.pullBranch(branch);
await gitUtils.push(branch, { includeTags: true });

but then you would encounter the problem when publishing packages, wouldn't you?

Do you have any guesses on why this fails for you? It looks quite bizarre - you are cloning a repository as the very first step of your workflow, so how git repository could not be found? 🤔

from action.

ianwalter avatar ianwalter commented on September 1, 2024

True. Only difference I can think of from the the example is that its running in a container and not directly on the vm and it's using Node 14.5 instead of LTS. I'll try printing the CWD and debugging later today.

from action.

ianwalter avatar ianwalter commented on September 1, 2024

It was because I was using the node:14.5 that uses Debian Stretch which has git < 2.18 and so the checkout action uses the GitHub API instead of git for whatever reason. I switched to node:14.5-buster and it worked, thanks!

from action.

bbedward avatar bbedward commented on September 1, 2024

I came across the same thing, as an alternative if you need a stretch image you can do:

# Add stretch-backports for newer git 
RUN echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y -t stretch-backports git && \
         apt-get clean all && \
         rm -rf /var/lib/apt/lists/*

from action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.