Skip to content

Commit 65149b5

Browse files
committed
fix update of git dependency with url only
1 parent 3a31380 commit 65149b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fpm/dependency.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ subroutine add_dependency_node(self, dependency, error)
454454
! New dependency: add from scratch
455455
self%ndep = self%ndep + 1
456456
self%dep(self%ndep) = dependency
457+
self%dep(self%ndep)%update = .false.
457458
end if
458459

459460
end subroutine add_dependency_node
@@ -948,9 +949,8 @@ subroutine register(self, package, root, fetch, revision, error)
948949
if (allocated(self%git) .and. present(revision)) then
949950
self%revision = revision
950951
if (.not. fetch) then
951-
! Change in revision ID was checked already. Only update if git information is missing
952-
! git object is HEAD always allows an update
953-
update = .not. allocated(self%git%object)
952+
! Change in revision ID was checked already. Only update if ALL git information is missing
953+
update = .not. allocated(self%git%url)
954954
end if
955955
end if
956956

0 commit comments

Comments
 (0)