Re: [git-users] Custom job for GIT

2016-04-26 Thread Magnus Therning

Kirthi Paruchuri  writes:

> Hi,
>
> I need some guidance on GIT
>
> I have a requirement where we have to call a web service and send an
> email when some one clones master branch. Is there any way I can check
> or continuously poll GIT data store to see if any clones have happened
> on the master branch. Or even is there anyway I can check GIT data
> store to see if any new clones or branches are created?
>
> I really appreciate your help on this

AFAIK there is no direct way to do this with git. There's a client-side
hook, post-checkout, that could be used, but then you rely on users not
messing around with it.

I think you also need to get a slightly better grasp of how git works; a
repository is cloned, a branch is checked out ;)

>From your question I'm guessing you work in a somewhat large
organisation where management feels a need to control where the source
code ends up. Personally I think such management will find git difficult
to deal with.

/M

-- 
Magnus Therning  OpenPGP: 0x927912051716CE39
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe   http://therning.org/magnus

Nearly every electrical engineer believes deep in his heart that he is
a better at writing computer programs than any computer programmer,
and can show as proof the fact that he has written a number of small
applications, each of which was done quickly, easily, and exactly met
his needs.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


[git-users] Custom job for GIT

2016-04-21 Thread Kirthi Paruchuri
Hi,

I need some guidance on GIT

I have a requirement where we have to call a web service and send an email 
when some one clones master branch. Is there any way I can check or 
continuously poll GIT data store to see if any clones have happened on the 
master branch. Or even is there anyway I can check GIT data store to see if 
any new clones or branches are created?

I really appreciate your help on this

Thank you

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.