Skip to contentSkip to conversation

post-receive email

DISCUSSION Arya, Manish Kumar 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I am using git 1.6.1

I have configured post-receive hook for sending emails on remote push activity.

But I am getting this error while push. any one using this script for email. can you suggest some other working script for this ?

----------------------------------
Counting objects: 5, done.
Compressing objects: 100% (3/3) Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3) Writing objects: 100% (3/3), 344 bytes, done.
Total 3 (delta 1), reused 0 (delta 0) hooks/post-receive: syntax error at line 73: `oldrev=$' unexpected
error: hooks/post-receive exited with error code 2 Pushing to ssh://xxx.xxx.xxx.net/opt/repos/mka.git
To ssh://xxx.xxx.xxx.net/opt/repos/mka.git
db4b382..186b0af master -> master
-----------------------------------

#1 lore raw
Quoted 6 lines · Manish Kumar

Hi,

I am using git 1.6.1

I have configured post-receive hook for sending emails on remote push activity.

Are you using the example contrib/hooks/post-receive-email that comes with Git?

Quoted 21 lines

But I am getting this error while push. any one using this script for email. can you suggest some other working script for this ?

----------------------------------
Counting objects: 5, done.
Compressing objects: 100% (3/3) Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3) Writing objects: 100% (3/3), 344 bytes, done.
Total 3 (delta 1), reused 0 (delta 0) hooks/post-receive: syntax error at line 73: `oldrev=$' unexpected
error: hooks/post-receive exited with error code 2 Pushing to ssh://xxx.xxx.xxx.net/opt/repos/mka.git
To ssh://xxx.xxx.xxx.net/opt/repos/mka.git
db4b382..186b0af master -> master
-----------------------------------

--
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html