Questions tagged [git-post-receive]

User defined script that is run on a git server after a git push command was issued.

A script that runs on a server after a git push command has been issued.

See http://git-scm.com/book/en/Customizing-Git-Git-Hooks

219 questions
0
votes
1 answer

Append tag name (version number) to Zip file in git post-receive hook

In Git, I'm trying to get the version number of my commit (by using tags) in a post-receive hook. Once I get that tag, I want to zip a certain directory and append the version number to it (ex: myplugin-2.0.1.zip) but I'm not sure how to get the tag…
rtvenge
  • 61
  • 1
  • 4
0
votes
1 answer

Using byobu and git post-receive hook

As part of my post-receive hook I checkout the HEAD of the repository and then run my start-up command. So when I do git push it works fine. Thing is, when i SSH into the box, I use byobu. Is there a way to get the post-receive hook to run my…
cjroebuck
  • 2,273
  • 4
  • 30
  • 46
0
votes
1 answer

Setup git repo post-receive on Windows

I would like to setup git deployment on my Windows server, but I'm having some trouble changing director from the git post-receive event. I get a "No such file or directory" error. I have the following setup: a git repository on a Windows share…
PropellerHead
  • 929
  • 1
  • 12
  • 27
0
votes
0 answers

inconsistant post-receive hook failure

I've setup a workflow where I push to a bare repo on the server and a post-receive hook copies the files into the folder the site is served from. However, I find that only 50% of the sites I setup in this way actually work, with the other 50% the…
CMSCSS
  • 2,076
  • 9
  • 28
  • 49
0
votes
1 answer

Git site deployment - checkout in post-receive hook not working

I've followed this tutorial 'Using Git to manage a web site', using Tower to commit and push my local repo to the remote server. Pushing succeeds with the following message: Pushing to ssh://user@mysite.com/~/git/tprevo.git stdin: is not a…
okyanet
  • 3,106
  • 1
  • 22
  • 16
0
votes
1 answer

Download from github automatically with every commit?

I have a few plugins created using jQuery, I have the demo's located on my server, I want to automatically update the demo every time a change is commited to the master branch on github. I know I can use Post-Receive Hooks to get a buzz on my…
Hailwood
  • 89,623
  • 107
  • 270
  • 423
-1
votes
1 answer

Git post-receive hook is not executed

The following post-receive hook: #!/bin/bash echo "-> Post-receive test" is not executed when pushing to my remote repository. The remote is ssh://user@server:2222/home/git/repo.git (it's a VM) and works, as when I manually checkout it I see the…
ryancey
  • 1,037
  • 2
  • 11
  • 27
-2
votes
1 answer

Whats the best practice for git on a live and stage setup?

I was wondering if that is a good version for my live and stage setup. 1 Adminserver with 2 Appservers - Live 1 Adminserver with 1 Appserver - Stage 1 Gitlabserver 4 Developers We already got the gitlab server and are using it just for tracking all…
Isengo
  • 2,004
  • 3
  • 21
  • 43
-2
votes
1 answer

post receive hook is showing an error of permission

I am trying to push the code into a beta directory as a developer pushed the code from their local system. So I made a file inside hooks post-receive and give them sufficient permission, it gets execute but throwing an error of remote: fatal:…
1 2 3
14
15