fetchgit: is_up_to_date requires rev to be a sha1
This commit is contained in:
parent
55d4b48803
commit
f44736bb6c
@ -35,7 +35,8 @@ work_git() {
|
|||||||
is_up_to_date() {
|
is_up_to_date() {
|
||||||
test -d "$cache_dir" &&
|
test -d "$cache_dir" &&
|
||||||
test -d "$work_dir" &&
|
test -d "$work_dir" &&
|
||||||
test "$(work_git rev-parse HEAD)" = "$(cache_git rev-parse "$git_rev")"
|
test "$(cache_git rev-parse "$git_rev")" = "$git_rev" &&
|
||||||
|
test "$(work_git rev-parse HEAD)" = "$git_rev"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Notice how the remote name "origin" has been chosen arbitrarily.
|
# Notice how the remote name "origin" has been chosen arbitrarily.
|
||||||
|
Loading…
Reference in New Issue
Block a user