In linux/unix, svn automatically updates post-commit hook failed (exit code 255)

Source: Internet
Author: User
Tags svn svn update

Solution to automatic svn update errors in linux/unix:

Post-commit hook failed (exit code 255) with no output.

In linux/unix, after svn is submitted, it is automatically updated to the test server. You can add a hook to/usr/svn/mulu/hooks/post-commit without a suffix.

Set the permission to executable

Chmod 777/usr/svn/baoming/hooks/post-commit
 
#! /Bin/sh
WEB = "/usr/home/mulu"
SVN = "/usr/local/bin/svn"
$ SVN update $ WEB-username ppkj.net-password ppkj.net | exit 1
Exit 0


Exit cannot be missing; otherwise, an error is reported.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.