My favorites
▼
|
Sign in
gerrit
Gerrit Code Review
Project Home
Downloads
Wiki
Issues
Source
Export to GitHub
New issue
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
3197
attachment: up.sh
(622 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
topic_suffix=$(date --rfc-3339=seconds | tr " " "_"|tr ":" "_")
topic="foo_bar_${topic_suffix}"
for x in submodule
do
(
cd $x
git fetch --all
git reset --hard origin/master
git submodule update
echo asdf >>asdf
git add asdf
git commit -a -m "asdf done"
git push origin HEAD:refs/for/master/$topic
git reset --hard origin/master
echo "qwerty" >>qwerty
git add qwerty
git commit -a -m "qwerty"
git push origin HEAD:refs/for/master/$topic
echo "qwerty follow up" >>qwerty
git add qwerty
git commit -a -m "qwerty follow up"
git push origin HEAD:refs/for/master/$topic
)
done
Powered by
Google Project Hosting