1package git23import (4 "context"56 "github.com/aymanbagabas/git-module"7)89// UpdateServerInfo updates the server info file for the given repo path.10func UpdateServerInfo(ctx context.Context, path string) error {11 if !isGitDir(path) {12 return ErrNotAGitRepository13 }1415 cmd := git.NewCommand("update-server-info").WithContext(ctx).WithTimeout(-1)16 _, err := cmd.RunInDir(path)17 return err18}