Comments (4)
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.
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.
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.
Bingo! $repo->pull("origin"); actually works! Many thanks
from gitelephant.
Related Issues (20)
- getBranches() fails when the repository is in a detached state HOT 1
- [Q] What are the necessary permissions? HOT 3
- PHP 7.2 breaks project because of "Object" type-hint HOT 2
- dev-develop branch breaks composer HOT 2
- Symfony 4 HOT 2
- Make LC_ALL call optional on Windows HOT 2
- live example website is down ? HOT 3
- Problems with Stash and Pop HOT 6
- Error calling all the functions HOT 1
- GitElephant for Enterprise HOT 5
- Update composer.json to allow sf5 versions of dependencies HOT 1
- Process::fromShellCommandline($cmd, $cwd); fails HOT 4
- v4.1.1: Call to undefined function GitElephant\Command\is_countable() HOT 3
- Replace Repo::getTree() with a contrib Tree implementation HOT 1
- PHP 8
- git add . HOT 1
- PHP 8.1 compatibility fix for deprecated return
- More PHP 8.1 deprecations HOT 1
- phpcollection/phpcollection seems to be unmaintained HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitelephant.