Skip to content

Commit

Permalink
Merge pull request #79 from adamlacoste/bug/submodule-update-init-etc
Browse files Browse the repository at this point in the history
Fixed a bug wherein the interface for submodule update
  • Loading branch information
matteosister committed Apr 2, 2015
2 parents 1e57a75 + 55ddfb3 commit 20316e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GitElephant/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ public function addSubmodule($gitUrl, $path = null)
*/
public function initSubmodule($path = null)
{
$this->caller->execute(SubmoduleCommand::getInstance()->init($path));
$this->caller->execute(SubmoduleCommand::getInstance($this)->init($path));
return $this;
}

Expand All @@ -643,7 +643,7 @@ public function initSubmodule($path = null)
*/
public function updateSubmodule($recursive = false, $init = false, $force = false, $path = null)
{
$this->caller->execute(SubmoduleCommand::getInstance()->update($path));
$this->caller->execute(SubmoduleCommand::getInstance($this)->update($recursive, $init, $force, $path));
return $this;
}

Expand Down

0 comments on commit 20316e6

Please sign in to comment.