[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #25746 [Applications/rbm]: git_submodule option doesn't work when a submodule is not in the root directory
#25746: git_submodule option doesn't work when a submodule is not in the root
directory
---------------------------+-----------------------------------------------
Reporter: boklm | Owner: boklm
Type: defect | Status: new
Priority: Medium | Milestone:
Component: | Version:
Applications/rbm |
Severity: Normal | Keywords: TorBrowserTeam201804, boklm201804
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
---------------------------+-----------------------------------------------
rbm has the `git_submodule` option to include all submodules in the
sources tarball. This option works as expected when all the submodules are
located in the root directory, however it fails if one of the submodules
is in a sub-directory.
The reason is that we do this to create .tar files for all the submodules:
{{{
($stdout, $stderr, $success, $exit_code)
= capture_exec('git', 'submodule', 'foreach',
"git archive --prefix=$project-$version/\$path/"
. " --output=$tmpdir/submodule-\$name.tar \$sha1");
}}}
We use the submodule name in the output filename inside a temporary
directory, which fails when the submodule name contains `/` as it wants to
create a file in a directory which does not exist.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25746>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs