Skip to content

Commit 98b1e68

Browse files
committed
[firefox-cinnabar] configure git-cinnabar clone following best practices
1 parent 3d69ccb commit 98b1e68

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

firefox/firefox-cinnabar.dockerfile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,19 @@ RUN git clone https://github.com/glandium/git-cinnabar /home/user/.git-cinnabar
77
&& echo "PATH=\"\$PATH:/home/user/.git-cinnabar\"" >> /home/user/.bashrc
88
ENV PATH $PATH:/home/user/.git-cinnabar
99

10-
# Download Firefox's source code.
11-
RUN git -c cinnabar.clone=https://github.com/glandium/gecko clone hg::https://hg.mozilla.org/mozilla-unified /home/user/firefox
10+
# Download Firefox's source code using git-cinnabar.
11+
# Source: https://github.com/glandium/git-cinnabar/wiki/Mozilla:-A-git-workflow-for-Gecko-development
12+
RUN git -c cinnabar.clone=https://github.com/glandium/gecko clone hg::https://hg.mozilla.org/mozilla-unified /home/user/firefox \
13+
&& cd /home/user/firefox \
14+
&& git config fetch.prune true \
15+
&& git remote add try hg::https://hg.mozilla.org/try \
16+
&& git config remote.try.skipDefaultUpdate true \
17+
&& git remote set-url --push try hg::ssh://hg.mozilla.org/try \
18+
&& git config remote.try.push +HEAD:refs/heads/branches/default/tip \
19+
&& git remote add inbound hg::ssh://hg.mozilla.org/integration/mozilla-inbound \
20+
&& git config remote.inbound.skipDefaultUpdate true \
21+
&& git config remote.inbound.push +HEAD:refs/heads/branches/default/tip \
22+
&& git fetch --tags hg::tags: tag "*"
1223
WORKDIR /home/user/firefox
1324

1425
# Add Firefox build configuration.

0 commit comments

Comments
 (0)