Giter VIP home page Giter VIP logo

Comments (4)

GenieTim avatar GenieTim commented on August 11, 2024

Hi. Sorry to hear that you are having problems. The $repo-pull($from = null, $ref = null, bool $rebase = true) command actually can accept up to 3 arguments. In your case, to finally end up with git pull origin, you can pass as second argument the string 'origin', like so: $repo->pull($git, "origin");.

from gitelephant.

AndreFabris avatar AndreFabris commented on August 11, 2024

I tried passing various second arguments, from just a string to a branch. However when I pass "origin" I get:
Exit code: 1 while executing: "LC_ALL=C /usr/bin/git '-c' 'user.email'='[email protected]' '-c' 'user.name'='AppsForce Administrator' pull '--rebase' 'http://[email protected]:8080/r/appsforceproject/mydate.git' 'origin'" with reason: fatal: Couldn't find remote ref origin

from gitelephant.

GenieTim avatar GenieTim commented on August 11, 2024

Okay, I see. I might have to ask a few details about your repo as to the state it is in (output of git remote, git status), but first, let me ask if it works when you just use $repo->pull("origin");?

You might realize in your output posted above how the actual command gets assembled; doing just $repo->pull("origin"); will equivalently result in the command LC_ALL=C /usr/bin/git '-c' 'user.email'='[email protected]' '-c' 'user.name'='AppsForce Administrator' pull '--rebase' 'origin' being actually executed, which will be more like the desired git pull origin.

from gitelephant.

AndreFabris avatar AndreFabris commented on August 11, 2024

Bingo! $repo->pull("origin"); actually works! Many thanks

from gitelephant.

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.