git clone on wildcard repos

628 views
Skip to first unread message

Javier Domingo

unread,
Nov 22, 2012, 7:56:42 AM11/22/12
to gitolite
I just noticed that if you clone a non-existing repo, it gets created.

Would it be posible to just create them on push? or is it done like
this on purpouse? Would it be posible to be configurable?

I understand that if you want to create a new repo, you just have to
clone and you will have the remote already configured there, but you
can also create new repos by misspelling (which was my case) the name,
and if you want to be able to delete them, you have to enable D
command.

Cheers,

Javier Domingo

Sitaram Chamarty

unread,
Nov 22, 2012, 10:51:41 AM11/22/12
to Javier Domingo, gitolite
ok; check out the latest push:

96cc2ea new features relating to creating wild repos:



--
Sitaram

Javier Domingo

unread,
Nov 22, 2012, 11:16:15 AM11/22/12
to Sitaram Chamarty, gitolite
I am now trying the latest push, and some various problems I have encountered:

I am not autorished, though I have created the repo, so I can't use D
command. I think there must be some type of bug with gitolite creator
"reponame" user because it returns 1 in all the cases (tried with
gitolite creator javier/myrepo javier and with gitolite creator
javier/myrepo otheruser)

I have various bugs that can be related to this, I will get sure about
it and keep reporting :)

Javier Domingo


2012/11/22 Sitaram Chamarty <sita...@gmail.com>:

Javier Domingo

unread,
Nov 22, 2012, 11:19:31 AM11/22/12
to Sitaram Chamarty, gitolite
I think I found the bug:

$ gitolite creator "javier/kernel-extra" javier
TRACE 2 (gitolite) attempting gitolite command
/home/git/gitolite/src/commands/creator
TRACE 1 _system system
TRACE 1 /home/git/gitolite/src/commands/creator
TRACE 1 javier/kernel-extra
TRACE 1 javier
TRACE 1 _system system() failed
TRACE 1 /home/git/gitolite/src/commands/creator
TRACE 1 javier/kernel-extra
TRACE 1 javier
TRACE 1 -> 256
FATAL: child exited with value 1

at /home/git/gitolite/src/lib/Gitolite/Common.pm line 104
Gitolite::Common::_die('child exited with value 1\x{a}') called at
/home/git/gitolite/src/lib/Gitolite/Common.pm line 151
Gitolite::Common::_system('/home/git/gitolite/src/commands/creator',
'javier/kernel-extra', 'javier') called at /home/git/bin/gitolite line
78

Hope it helps
Javier Domingo


2012/11/22 Javier Domingo <javi...@gmail.com>:

Sitaram Chamarty

unread,
Nov 22, 2012, 11:23:39 AM11/22/12
to Javier Domingo, gitolite
forget the logs and give me a reproducible test case:

- conf file
- sequence of commands/actions

:-)
--
Sitaram
Reply all
Reply to author
Forward
0 new messages