Commit 8a26adf
committed
scripts: Add support to checkout specific commits for alsa repos
Replace the hardcoded COMMIT_ID array with runtime command line
parameters.
Each repo can now be checked out to a specific commit or tag by passing
--<repo-name>-commit=<ref> on the command line, e.g.:
--alsa-lib-commit=v1.2.3
--alsa-utils-commit=abc1234
If no commit is provided for a specific repo then the code will
be updated with latest code on remote. This is a slight modification
from the original code where a list of hardcoded commits was used.
But that behavior was already broken, e.g the hardcoded commit
for alsa-utils cannot be found in git tree anyway.
Also, remove check_commit() as it's no longer needed.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>1 parent 3f7738d commit 8a26adf
1 file changed
Lines changed: 19 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 56 | | |
71 | 57 | | |
72 | 58 | | |
| |||
114 | 100 | | |
115 | 101 | | |
116 | 102 | | |
117 | | - | |
118 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
119 | 110 | | |
120 | | - | |
| 111 | + | |
121 | 112 | | |
122 | 113 | | |
123 | 114 | | |
| |||
0 commit comments