Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hust-x86-simulator
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yizhiran
hust-x86-simulator
Commits
bfdc5219
There was an error fetching the commit references. Please try again later.
Commit
bfdc5219
authored
8 years ago
by
Zihao Yu
Browse files
Options
Downloads
Patches
Plain Diff
init.sh: record the HEADs of each subproject in the initialization commit log
parent
d5348589
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
init.sh
+4
-1
4 additions, 1 deletion
init.sh
with
4 additions
and
1 deletion
init.sh
+
4
−
1
View file @
bfdc5219
#!/bin/bash
#!/bin/bash
log
=
""
function
init
()
{
function
init
()
{
if
test
-d
$1
;
then
if
test
-d
$1
;
then
echo
"
$1
is already initialized, exiting..."
echo
"
$1
is already initialized, exiting..."
...
@@ -7,6 +9,7 @@ function init() {
...
@@ -7,6 +9,7 @@ function init() {
fi
fi
git clone
-b
ics2017 https://github.com/NJU-ProjectN/
$1
.git
git clone
-b
ics2017 https://github.com/NJU-ProjectN/
$1
.git
log
=
"
$log$1
`
cd
$1
&&
git log
--oneline
--no-abbrev-commit
-n1
`
"
$'
\n
'
rm
-rf
$1
/.git
rm
-rf
$1
/.git
if
test
$2
;
then
if
test
$2
;
then
...
@@ -25,7 +28,7 @@ case $input in
...
@@ -25,7 +28,7 @@ case $input in
source
~/.bashrc
source
~/.bashrc
git add
-A
git add
-A
git commit
-am
"ics2017 initialized"
git commit
-am
"ics2017 initialized"
$'
\n\n
'
"
$log
"
echo
"Initialization finishes!"
echo
"Initialization finishes!"
;;
;;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment