[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: git repository



Hi Andreas,

On 03/06/2014 11:18 PM, Andreas Tille wrote:
> On Thu, Mar 06, 2014 at 10:37:00PM +0100, Sebastiaan Couwenberg wrote:
>>
>> While we use the same post-receive hook for all pkg-grass git
>> repositories, only the QGIS post-receive hook is different.
> 
> :-)
> I just picked QGIS as example (but noticed the additional upstream stuff
> and removed it).
>  
>> This is the only repository so far which has the upstream git repository
>> configured as a remote. The post-receive hook therefor also does a `git
>> fetch upstream`.
>>
>> Until an upstream remote is added, there is no need for the git fetch in
>> the post-receive hook. Can you remove that from the hooks for osmpbf and
>> osmosis?
> 
> I think I did so - what exactly should be changed?

The post-receive contained:

#!/bin/sh
exec pee /home/groups/kgb/bin/kgb-client-trunk
/usr/local/bin/git-commit-notice

# Also update the upstream remote
git fetch upstream --no-tags

The last 3 lines needed to be removed to keep only the shebang and exec
lines.

I changed the post-receive hooks after I read the posts from Giovanni
and David.

>> While checking the post-receive hooks I noticed two additional
>> repositories that don't use the correct hook. creepy.git & mkgmap.git
>> only exec git-commit-notice but don't also use kgb-client. I've fixed
>> these by copying the post-receive hook from mapserver.git.
> 
> I just recreated mkgmap.git using the setup script and hope things
> went well.

The setup-repository script creates the correct post-receive hook,
that's fine.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/E88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1


Reply to: