Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
068e9228
Commit
068e9228
authored
Feb 01, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added path support to bundle installer.
parent
8066a595
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
github.php
laravel/cli/tasks/bundle/providers/github.php
+13
-4
file.php
laravel/file.php
+0
-1
No files found.
laravel/cli/tasks/bundle/providers/github.php
View file @
068e9228
...
@@ -12,14 +12,23 @@ class Github implements Provider {
...
@@ -12,14 +12,23 @@ class Github implements Provider {
{
{
$repository
=
"git@github.com:
{
$bundle
[
'location'
]
}
.git"
;
$repository
=
"git@github.com:
{
$bundle
[
'location'
]
}
.git"
;
$path
=
array_get
(
$bundle
,
'path'
,
$bundle
[
'name'
]);
// If the installation target directory doesn't exist, we will create
// it recursively so that we can properly add the Git submodule for
// the bundle when we install.
if
(
!
is_dir
(
path
(
'bundle'
)
.
$path
))
{
mkdir
(
path
(
'bundle'
)
.
$path
,
0777
,
true
);
}
// We need to just extract the basename of the bundle path when
// We need to just extract the basename of the bundle path when
// adding the submodule. Of course, we can't add a submodule to
// adding the submodule. Of course, we can't add a submodule to
// a location outside of the Git repository, so we don't need
// a location outside of the Git repository, so we don't need
// the full bundle path. We'll just take the basename in case
// the full bundle path.
// the bundle directory has been renamed.
$root
=
basename
(
path
(
'bundle'
))
.
'/'
;
$path
=
basename
(
path
(
'bundle'
))
.
'/'
;
passthru
(
'git submodule add '
.
$repository
.
' '
.
$
path
.
$bundle
[
'name'
]
);
passthru
(
'git submodule add '
.
$repository
.
' '
.
$
root
.
$path
);
passthru
(
'git submodule update'
);
passthru
(
'git submodule update'
);
}
}
...
...
laravel/file.php
View file @
068e9228
...
@@ -220,5 +220,4 @@ class File {
...
@@ -220,5 +220,4 @@ class File {
}
}
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment