This repository has been archived by the owner on Apr 29, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote branch 'technicalpickles/repository_type' into tech/repo…
…type * technicalpickles/repository_type: Added nice error message for when can't guess the type of a repository. Repositories know what 'type' of repository they handle, ie Piston::Svn::Repository handles 'git'. When don't know how to handle a repository, suggests to use --repository-type and gives valid types. Added support for specifying what type of repository you are trying to import.
- Loading branch information
Showing
5 changed files
with
63 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,10 @@ def client | |
def git(*args) | ||
client.git(*args) | ||
end | ||
|
||
def repository_type | ||
'git' | ||
end | ||
end | ||
|
||
def git(*args) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,10 @@ def client | |
def svn(*args) | ||
client.svn(*args) | ||
end | ||
|
||
def repository_type | ||
'svn' | ||
end | ||
end | ||
|
||
def svn(*args) | ||
|