This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,46 @@
|
|||
Modify the default branch of a source repo.
|
||||
|
||||
Once the branch is modified, dune should rebuild the package.
|
||||
|
||||
This bug is reported in #10063
|
||||
|
||||
$ . ../git-helpers.sh
|
||||
$ . ./helpers.sh
|
||||
|
||||
$ src="_git_source"
|
||||
|
||||
$ mkdir $src && cd $src
|
||||
$ git init --quiet
|
||||
$ git checkout -b "branch1"
|
||||
Switched to a new branch 'branch1'
|
||||
$ echo "branch 1" > file
|
||||
$ git add -A
|
||||
$ git commit --quiet -m "branch 1"
|
||||
$ git checkout -b branch2
|
||||
Switched to a new branch 'branch2'
|
||||
$ echo "branch 2" > file
|
||||
$ git add -A
|
||||
$ git commit --quiet -m "branch 2"
|
||||
$ cd ..
|
||||
|
||||
$ make_lockdir
|
||||
$ make_lockpkg foo <<EOF
|
||||
> (source (fetch (url "git+file://$PWD/$src")))
|
||||
> (version 0.0.1)
|
||||
> (build (run cat file))
|
||||
> EOF
|
||||
|
||||
Build the package
|
||||
|
||||
$ build_pkg foo
|
||||
branch 2
|
||||
|
||||
Change the default branch
|
||||
|
||||
$ git -C $src checkout branch1
|
||||
Switched to branch 'branch1'
|
||||
|
||||
And now rebuild
|
||||
|
||||
$ build_pkg foo
|
||||
branch 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue