Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Mubashwer/git-mob
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.9.1
Choose a base ref
...
head repository: Mubashwer/git-mob
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.9.2
Choose a head ref
  • 7 commits
  • 14 files changed
  • 3 contributors

Commits on Jun 22, 2025

  1. refactor: replace home crate with std::env::home_dir()

    Previously, std::env::home_dir() could give surprising results in some Windows configurations if the HOME environment variable was set (which is not the normal configuration on Windows). This has been fixed in Rust 1.85.0
    
    https://blog.rust-lang.org/2025/02/20/Rust-1.85.0/#updates-to-std-env-home-dir
    Mubashwer committed Jun 22, 2025
    Configuration menu
    Copy the full SHA
    7827cdd View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2025

  1. refactor: introduce custom Result<T> type alias

    - Improves code readability as return type is now more concise
    - Adheres to DRY principle
    - Will make it easier in the future to introduce custom Error type
    Mubashwer committed Jun 24, 2025
    Configuration menu
    Copy the full SHA
    af10901 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2025

  1. Configuration menu
    Copy the full SHA
    f80b3e5 View commit details
    Browse the repository at this point in the history
  2. ci: fix codeql actions/missing-workflow-permissions alert (#106)

    Potential fix for code scanning alert no. 1: Workflow does not contain permissions
    
    Code QL Rule ID: actions/missing-workflow-permissions
    
    Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
    Configuration menu
    Copy the full SHA
    a0529e5 View commit details
    Browse the repository at this point in the history
  3. fix: resolve path injection vulnerabilities in setup command

    - Add path-clean dependency to sanitize file paths
    - Fix 7 CodeQL path injection vulnerabilities in src/commands/setup.rs:
      * Alert #13: hooks_dir.exists() with unsanitized path from git config
      * Alert #12: hooks_dir.exists() with unsanitized global hooks directory
      * Alert #11: fs::rename() with unsanitized backup path construction
      * Alert #10: fs::set_permissions() with unsanitized file path
      * Alert #9: fs::write() with unsanitized file path
      * Alert #8: fs::create_dir_all() with unsanitized prepare_commit_msg_path
      * Alert #7: fs::create_dir_all() with unsanitized local hooks directory
    
    - Use PathClean::clean() to normalize paths and remove directory traversal sequences
    - Ensure all file system operations use sanitized paths to prevent path injection attacks
    - Maintain backward compatibility and pass all existing tests
    
    Fixes: GitHub Security Advisory alerts #7-#13
    Mubashwer committed Jul 1, 2025
    Configuration menu
    Copy the full SHA
    3acf7a9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ee84eeb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    13dffd6 View commit details
    Browse the repository at this point in the history
Loading