Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
installsystems
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Seblu
installsystems
Commits
d0b746cb
Commit
d0b746cb
authored
13 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
init repository must not use load_repositories
parent
4bbcd50b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/is
+11
-7
11 additions, 7 deletions
bin/is
with
11 additions
and
7 deletions
bin/is
+
11
−
7
View file @
d0b746cb
...
...
@@ -67,13 +67,17 @@ def c_init(parser, args):
'''
Create a empty repository
'''
repoman
=
load_repositories
(
args
)
if
len
(
repoman
)
==
0
:
raise
Exception
(
"
No repository selected
"
)
elif
len
(
repoman
)
>
1
:
raise
Exception
(
"
Please select only one repository
"
)
Repository
.
create
(
repoman
[
0
])
debug
(
"
Repository: %s
"
%
repoman
[
0
])
# we cannot use load_repositories because repo doesn't exists
if
args
.
repo_path
is
not
None
:
# from command line
Repository
.
create
(
RepositoryConfig
(
None
,
path
=
args
.
repo_path
))
else
:
# from config
for
repoconf
in
RepoConfigFile
(
args
.
repo_config
).
repos
:
# filtering on repository name if present
if
args
.
repo_filter
is
not
None
and
repoconf
.
name
!=
args
.
repo_filter
:
continue
Repository
.
create
(
repoconf
)
def
c_add
(
parser
,
args
):
'''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment