Shouldn't GitRole fetch changes (or is it super smart and I missed it)

8 views
Skip to first unread message

Jacek Bzdak

unread,
Jan 2, 2014, 1:28:27 PM1/2/14
to pr...@googlegroups.com
Hi,

looking at debian.GitRole I see following logic:
  • If repository dir doesn't exist clone it
  • Checkout current branch

I'd like GitRole to also fetch changes if repository exists. Was this omited for some good reason?

JB.

Diogo Baeder

unread,
Jan 2, 2014, 1:54:08 PM1/2/14
to pr...@googlegroups.com
I think this should be a different functionality, to avoid ambiguity.

__________________________
Diogo Baeder
http://diogobaeder.com.br


--
You received this message because you are subscribed to the Google Groups "provy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to provy+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Bernardo Heynemann

unread,
Jan 2, 2014, 1:59:38 PM1/2/14
to provy
I dont think it was omited on purpose, but maybe have an optional parameter:

git.ensure_repository(
    'git://github.com/heynemann/provy.git',
    '/home/user/provy',
    owner='user', branch='some-branch,
    auto_fetch=True  # THIS PARAMETER
)


Bernardo Heynemann
Developer @ globo.com


On Thu, Jan 2, 2014 at 4:28 PM, Jacek Bzdak <jbz...@gmail.com> wrote:

--

Bernardo Heynemann

unread,
Jan 2, 2014, 2:00:18 PM1/2/14
to provy
Also agree with Diogo, we should also provide a git.fetch_at('/home/user/provy') provided the path is a git repository.

What do you think?

Cheers,

Bernardo Heynemann
Developer @ globo.com


Reply all
Reply to author
Forward
0 new messages