Boost logo

Boost Testing :

Subject: Re: [Boost-testing] [EXTERNAL] Re: error encountered running run.py
From: Niklas Angare (li51ckf02_at_[hidden])
Date: 2014-11-07 19:19:47


"Aparna Kumta" <aparna.kumta_at_[hidden]> wrote:
> I am able to start downloading the files, however, I see the following
> git error.
> # Executing GIT command: /home/akumta/BOOST_REGRESSION/boost_root> git
> checkout "develop"
> Already on 'develop'
> Your branch is up-to-date with 'origin/develop'.
> # Executing GIT command: /home/akumta/BOOST_REGRESSION/boost_root> git
> submodule foreach "git reset --quiet --hard; git clean -fxd"
> Entering 'libs/accumulators'
> error: unknown option `hard;'
> usage: git reset [--mixed | --soft | --hard | --merge | --keep] [-q]
> [<commit>]
> or: git reset [-q] <tree-ish> [--] <paths>...
> or: git reset --patch [<tree-ish>] [--] [<paths>...]
>
> -q, --quiet be quiet, only report errors
> --mixed reset HEAD and index
> --soft reset only HEAD
> --hard reset HEAD, index and working tree
> --merge reset HEAD, index and working tree
> --keep reset HEAD but keep local changes
> -p, --patch select hunks interactively
>
> Stopping at 'libs/accumulators'; script returned non-zero status.
> Traceback (most recent call last):
> File "/home/akumta/BOOST_REGRESSION/tools_regression_src/regression.py",
> line 917, in git_checkout
> self.git_command( 'submodule foreach', 'git reset --quiet --hard ; git
> clean -fxd')
>
> File "/home/akumta/BOOST_REGRESSION/tools_regression_src/regression.py",
> line 899, in git_command
> raise Exception( 'GIT command "%s" failed with code %d' % (git_cli,
> rc) )
> Exception: GIT command "git submodule foreach "git reset --quiet --hard;
> git clean -fxd"" failed with code 256
> %
>
> The git version I am using is 1.8.5.

The semicolon after --hard is being interpreted incorrectly for some reason.
git should be passing the command line "git reset --quiet --hard; git
clean -fxd" to the shell, which in turn should interpret it as two commands
"git reset --quiet --hard" and "git clean -fxd".

Try running the following command manually in the boost_root directory:
git submodule foreach "git reset --quiet --hard; git clean -fxd"

Experiment with changes to the command to get it to work. Does your shell
handle semicolon? Could it be a quoting problem? Does replacing " with ' fix
it?

Regards,

Niklas Angare
 


Boost-testing list run by mbergal at meta-comm.com