Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1051213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:53:46+00:00 2026-05-16T16:53:46+00:00

I have a system setup like this: http://joemaller.com/990/a-web-focused-git-workflow/ However no matter how I configure

  • 0

I have a system setup like this:

http://joemaller.com/990/a-web-focused-git-workflow/

However no matter how I configure the shell environment (i.e. GIT_DIR and PWD) the git-pull command does NOT run when called by the hook. Literally there is NO output whatsoever.

My post-update looks like:

#!/bin/sh    
/git/Lunch.git/lunch-receive > lunch.txt

and my lunch-receive script looks like:

#!/bin/sh
service myService stop
cd /usr/lunch
unset GIT_DIR
git reset --hard # necessary or the pull fails
git pull hub master # this line DOESN'T RUN grrrrr!
chmod u+x *.sh
chmod -R u+x bin
service myService start

Finally, lunch.txt (the output) looks like

HEAD is now at 5956c0b [old commit message]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:53:47+00:00Added an answer on May 16, 2026 at 4:53 pm

    Absurdly, changing

    /git/Lunch.git/lunch-receive > lunch.txt
    

    to:

    /git/Lunch.git/lunch-receive > lunch.txt 2>&1
    

    and

    git pull hub master
    

    to:

     echo before-pull
     git pull --verbose hub master || echo "git-pull: returned error code"
     echo after-pull
    

    seemed to have fixed the problem

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Visual Studio Setup project: I have to check certain system requirements before my setup
I have installed KVM on my Ubuntu system. Using vmbuilder , I setup a
I'm working on a survey system for my company and I have it setup
So, I have built on this system for quite some time, and it is
I have an interface with a method on it defined like this: IEnumerable<dynamic> ExecuteDynamic(string
This is my first serious project using NHibernate and I have setup log4net to
I've got an instance using this AMI - ami-b7a29cc3 http://thecloudmarket.com/image/ami-b7a29cc3--bitnami-wordpress-3-3-1-1-multisite-linux-ubuntu-10-04-ebs#/details Which is a Wordpress
I recently ran the database repair tool as per this link: http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/db-repair-tool At the
This is a design question. Background: We get a web request into our system
I have a gen_server speaking to several hardware sensors. This setup works fine. Now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.