-(defun refresh-project (project)
- (multiple-value-bind (success code out err) (git project "branch" "-r" "--format" "%(refname) %(objectname)" "--list" "origin/*")
- (declare (ignore code err))
- (when (not success) (error "Failed to get branches"))
- (let
- ((branches (find-branch-by-project project)))
+(defun refresh-project (name)
+ (let*
+ ((project (find name *all-project* :test #'string= :key #'project-name))
+ (branches (find-branch-by-project project)))
+ (git project "fetch" "origin" "--prune")
+ (multiple-value-bind (success code out err) (git project "branch" "-r" "--format" "%(refname) %(objectname)" "--list" "origin/*")
+ (declare (ignore code err))
+ (when (not success) (error "Failed to get branches"))