Skip to content

Commit

Permalink
Visibilité publique sur Gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb35 committed Feb 24, 2018
1 parent 7e08786 commit 9a499ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
README.htm

# Fichiers de sauvegarde
*.swp
*.sw[p-z]
*~

# Fichiers Ansible
Expand Down
2 changes: 1 addition & 1 deletion marcheolex/pousserlestextes.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def pousser_les_textes_sur_gitlab( textes, dossier, gitlab_host, gitlab_token, g
if texte == None: # TODO vérifier pourquoi certains valent None
continue
nom_gitlab = texte[1].replace('é', 'e').replace('è', 'e').replace('ê', 'e')
gl.projects.create( {'name': texte[1], 'namespace_id': groupe.id, 'visibility_level': gitlab.VISIBILITY_PUBLIC} )
gl.projects.create( {'name': texte[1], 'namespace_id': groupe.id, 'visibility': 'public'} )
subprocess.call(['git', 'remote', 'add', 'origin', git_server+':'+gitlab_group+'/'+nom_gitlab], cwd=dossier+'/'+texte[0])
subprocess.call(['git', 'push', '--all'], cwd=dossier+'/'+texte[0], env={'GIT_SSH_COMMAND': 'ssh -i '+git_key})

Expand Down

0 comments on commit 9a499ae

Please sign in to comment.